Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1888 Lượt xem

Hello, I am wondering how I can create a dropdown menu items, like for example in the Invoicing module.

Picture of what I want to accomplish in my own module:

https://imgur.com/8H0BFgI


Right now when I click any buttons in the navbar it just goes straight to the view. Thanks for your help.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello, This is code for your screenshoot from odoo14ee it's same as 12 you should parent menuitem without action

<menuitem id="menu_finance_receivables" name="Customers" parent="menu_finance" sequence="2"/>
<menuitem id="menu_action_move_out_invoice_type" action="action_move_out_invoice_type" parent="account.menu_finance_receivables" sequence="1"/>

Ảnh đại diện
Huỷ bỏ