Skip to main content

Add a Menu Item to Any Model’s Navigation in Odoo

Adding a menu item to the navigation in Odoo is an easy way to improve the usability of your application. In this tutorial, we will show you how to add a custom menu item to the Quotation section or any other sections’ navigations.

This will benefit you when you want to extend the functionality of the built-in models with custom code.

Add Menu Item to Quotation

This will add Download Sales menu item to Sales > Orders.

<record id="act_download_sale" model="ir.actions.act_window">
    <field name="name">Download Sales</field>
    <field name="res_model">wizard.sale.download</field>
    <field name="view_mode">form</field>
    <field name="view_id" ref="download_sale_form_view"/>
    <field name="target">new</field>
</record>

<menuitem id="menu_sale_export" parent="sale.sale_order_menu" name="Download Sales" sequence="0" action="act_download_sale"/>

By continuing to use the site, you agree to the use of cookies.