Odoo Help


How to hide a Messaging menu for custom groups in odoo

on 4/1/16, 12:01 AM 742 views

I want to Hide Message Menu for My custom users .But its not working..

Here group_insurance_agency is my Custom group 

In my scrurity.xml files is

<record id="group_insurance_agency" model="res.groups">    <field name="name">Agency/ Manager</field></record>

and i tried below code ----------

        <record id="mail.mail_group_root" model="ir.ui.menu">    <field name="groups_id" eval="[(6, 0,[ref('insure_demo_wkf.group_insurance_agency')])]"/></record>

What is the error with this?

Axel Mendoza
on 4/1/16, 5:18 AM

Hi axel..above code is not working... I tried with jigesh code then I got an error

on 4/1/16, 5:43 AM
On 4/2/16, 1:05 AM

I tried like.............below code not working

 <record id="mail.mail_feeds_main" model="ir.ui.menu"><field name="groups_id" eval="[(3,ref('group_insurance_agency'))]"/>    </record>
Jignesh Mehta
On 4/1/16, 3:39 AM

Hello Dep,

Try this :-

<record id="module_name.menu_id" model="ir.ui.menu">

    <field name="groups_id" eval="[(3,ref('custom_group_id'))]"/>


Hope it works for you.

I got Erorro........... res = self._obj.execute(query, params) ParseError: "null value in column "name" violates not-null constraint DETAIL: Failing row contains (276, null, null, null, f, 2016-04-01 08:57:00.711, null, STOCK_OPEN, 10, null, 1, null, null, 2016-04-01 08:57:00.711, 1, null, null). " while parsing file:///D:/Program Files/Odoo/odoo-8.0-20150603/openerp/addons/insure_demo_wkf/insure_info_view.xml:9, near

on 4/1/16, 4:57 AM

mail_channel_menu_root_chat is for odoo 9

Axel Mendoza
on 4/1/16, 5:16 AM

Hi Jigesh ,its not working...I tried with your latest code

on 4/1/16, 11:49 PM

I tried like ................................... Not Working

on 4/2/16, 1:04 AM
on 4/2/16, 1:05 AM

See this Post :- https://www.odoo.com/forum/help-1/question/hide-menu-for-existing-group-18704.

Jignesh Mehta
on 4/2/16, 1:06 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/1/16, 12:01 AM
Seen: 742 times
Last updated: 4/2/16, 1:07 AM