Welcome to the "OdooNautica" project! This project is designed to help you dive into and master the key mechanics of the Odoo platform. By the end of this project, you'll become a true Odoo expert, capable of customizing and expanding the ERP system to meet your business needs.
"Odoonautica" is an Odoo customization project featuring a ship-themed hotel management system. The primary concept revolves around managing hotel rooms and reservations made by guests who seek a unique experience on this ship.
Start by creating a new Odoo module named maritime_management with essential files and a manifest file.
-
Model Name:
maritime.ship- Fields:
name: Char field, name of the shipcaptain: Many2one field, the field should be related to theres.usermodel
- Fields:
-
Model Name:
maritime.cabin- Fields:
code: Char field that should be uniquetype: Selection field with options "standard" and "premium"number_of_beds: Integer field to represent the number of beds in the cabin
- Fields:
Set up access rights to allow only system administrators to access the newly created models.
- Add form and tree view for both created models.
- Create a menu item that triggers an action to open these views.
In this stage, you should have a running "Maritime Management" application with basic views and fields. Now we will make some customizations to our module.
- Add a new field
cabin_idstomaritime.shipthat will contain information about all cabins that this ship has. You also need to define a fieldship_idin themaritime.shipmodel to connect both fields. - Add the field
ship_idto the form view.
Create a new field cabin_count on model maritime.ship that will count the number of cabins on the ship.
In the view of ships, create a new smart button panel where you will add a smart button that will display the number of cabins connected to that ship. When you click this smart button, it should display a list view with all connected cabins of that ship.