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
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký