Como puedo hacer un submenu dentro de un submenu?, en el menu de inicio
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
Hi,
You can create a submenu under the start menu using the following code. Here I create a module for customer details report so I am going to create a menu and submenus for customer details report. So we will create a menu for customer details.
<menuitem id="menu_customer_details"
name="Customer Details"
sequence="2"/>Now we are adding a sub-menu so, action is added for the sub-menu.<menuitem id="menu_customer_details_
name="Reports"
parent="menu_customer_
sequence="0"/> To create a sub-menu, a parent main menu will be required. Here the parent menu is menu_customer_details.
<menuitem id="menu_customer_details_
name="Customer Details Report"
parent="menu_customer_
action="action_customer_
sequence="0"/>
Next, we are going to define action,
<record id="action_customer_details_
<field name="name">Customer Details Report</field>
<field name="res_model">customer.
<field name="view_mode">tree,form</
<field name="view_id" ref="customer_details_tree"/>
<field name="help" type="html">
<p class="o_view_nocontent_
Generate Customer Details
</p>
</field>
</record>
Hope it helps
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit se