December 2018
Beginner to intermediate
404 pages
10h 14m
English
Since we are creating a new app, it should have a main menu item. On the CE, this is shown as a new entry in the top-left drop-down menu. On the EE, it is shown as an additional icon in the App Switcher main menu.
Menu items are view components added using XML data files. Create the views/library_menu.xml file to define a menu item:
<?xml version="1.0"?>
<odoo>
<!-- Library App Menu -->
<menuitem id="menu_library"
name="Library" />
</odoo>
The user interface, including menu options and actions, is stored in database tables. The preceding code is an Odoo data file, describing a record to load into the Odoo database. The <menuitem> element is an instruction to write a record on the ir.ui.menu model.
The
Read now
Unlock full access