Reputation: 23
The following link solves the same problem for odoo 8.
Odoo: How to inherit menu items (make menu items invisible)
I tried everything suggested, nothing seems to work.
This defines the menuitem I am trying to hide:
<menuitem id="menu_sale_quote_template" action="action_sale_quotation_template" parent="sale.menu_sales_config" sequence="1" name="Quotation Templates" groups="sales_team.group_sale_salesman,sales_team.group_sale_manager"/>
It can be found in:
/addons/website_quote/views/sale_quote_views.xml
As a newbie it is likely that I am missing something fundamental.
To clarify, I am making my own modul and want to overwrite the existing menuitem with my own. I could make a new entry, now the old one(core odoo) just has to disappear.
I'm not allowed to change the odoo core.
Upvotes: 2
Views: 5170
Reputation: 14751
I think all you need to do is update the actions of the menu. i used to do this kind of logic to override the default groups given to menus by my own groups.
<record model="ir.ui.menu" id="website_quote.menu_sale_quote_template">
<field name="action" eval="False">
</record>
Menu without child or action will not displayed by the framework.
Hope this is what you want.
Upvotes: 2
Reputation: 931
Please add This group in view
<record id="hide" model="res.groups">
<field name="name">Hide</field>
<field name="comment">Hide.</field>
</record>
add this group in quotation menu
<menuitem id="sale.menu_sale_quote_template" action="sale.action_sale_quotation_template" parent="sale.menu_sales_config" sequence="1" name="Quotation Templates" groups="hide"/>
Upvotes: 4