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 hide menu using groups?

By
Miel
on 9/7/14, 11:34 PM 881 views

I tried to hide a menu using groups but it didn't work.Please see below and advise.

<menuitem id="account.menu_account_config" name="Accounting" parent="base.menu_config" groups="module1.group_hidden"/>

1
Anirudh Lou
On 10/8/14, 4:24 AM

Also try to call your .csv in your module and make sure you have populate it. Hope it help.

2

deep

--deep--
1617
| 5 4 7
Bengaluru, India
--deep--

Techno-Functional Associate with 6+ years of experience in Odoo (formerly known as OpenERP).

deep
On 9/8/14, 4:01 AM

You have overriden the standard menu, and trying to set the group attributes.. which will just append the groups to it, as it is Many2many field,.. So use (6,0) which will replace the groups

Here your code should go like this....

<record model="ir.ui.menu" id="account.menu_account_config">
            <field name="groups_id" eval="[(6,0, [ref('module1.group_hidden)])]"/>  
        </record>

 

Refer Docs: ORM Methods

 

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

1 follower(s)

Stats

Asked: 9/7/14, 11:34 PM
Seen: 881 times
Last updated: 3/16/15, 8:10 AM