-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Odoo Development Cookbook
By :

Once we have models for our data structure needs, we want a user interface so that our users can interact with them. Menus and views play a crucial role in structuring and enhancing the user experience. Menus, from a technical perspective, are dynamic user interface components that present a structured set of options or links, typically allowing users to access various features, functions, or content areas within an application. This recipe builds on the Hostel
model from the previous recipe and adds a menu item to display a user interface, featuring list and form views.
The add-on module to implement the hostel.hostel
model, which was provided in the previous recipe, is needed. The paths that will be used are relative to our add-on module location (for example, ~/odoo-dev/local-addons/my_hostel/
).
To add a view, we will add an XML file with its definition to the module. Since it is a new model, we must also add...