December 2018
Beginner to intermediate
404 pages
10h 14m
English
Now that we have the places to store our data, we want to have it available on the user interface. The first thing to do is add the corresponding menu options.
Edit the views/library_menu.xml file and, inside the <odoo> XML element, add the records that define a menu item and the action performed by it:
<!-- Action to open the Book list -->
<act_window id="action_library_book"
name="Library Books"
res_model="library.book"
view_mode="tree,form" />
<!-- Menu item to open the Book list -->
<menuitem id="menu_library_book"
name="Books" parent="library_menu"
action="action_library_book" />
The user interface, including menu options and actions, is stored in database tables. The XML file is a data file used to load those ...
Read now
Unlock full access