Open an external URL from Menu Item in Odoo

In Odoo a menu item can link to an external URL. URL action (ir.actions.act_url) allows opening a URL (website/web page) via an Odoo action.

Here is the menu item code and its action:

<record model="ir.actions.act_url" id="act_reports">
    <field name="name">Reports</field>
    <field name="url"></field>
    <field name="target">new</field>

<menuitem name="Reports" id="menu_reports" parent="menu_root" action="act_reports"/>

Leave a Comment

Your email address will not be published. Required fields are marked *

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

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.