Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

how to add menu item to sales menu?

By
Eric
on 5/5/14, 4:10 PM 4,321 views

Hello, I am trying to add a menu item to the Sales sub menu in the CRM module. I made a new menu item with an action, but I cant seem to add it in the Sales sub menu when I install my custom module.

<record id="action_view_menuitem" model="ir.actions.act_window">
        <field name="name">Menuitem</field>
        <field name="res_model">sale.custom_model</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
</record>
<menuitem id="menu_sub_sales_menuitem" parent="base.menu_base_config" name="Menuitem" sequence="1" action="action_view_menuitem" />

I know I need to add the right parent menu id in the parent attribute, but Im not sure which one it is for the Sales Menu. I tried the "base.menu_base_config", "base.menu_base_partner", and "base.menu_sales" as the parent, but can't seem to get my new menu item to show up in the Sales sub menu here:

I would like to show the new menu item after the Quotations sub menu item. Thank you

image description

2
Eric
On 5/5/14, 4:27 PM

Hello, I found out what the problem was. The user account that I was logged in as didnt have access rights to see the new menu that I was trying to add. Once I logged in as administrator, then i saw the new menu item that was added.

If anyone is wondering, the correct parent id is: base.menu_sales

what access rights in the user account that you logged in must need to change in order to see the menu item? (im referring not to administrator account) .

Lakay lakay
on 9/12/14, 2:22 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 5/5/14, 4:10 PM
Seen: 4321 times
Last updated: 12/7/15, 2:19 PM