Odoo Help


How to hide a Messaging menu for custom groups in odoo

on 4/1/16, 12:01 AM 875 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


--Odoo --

| 5 2 5
--Odoo --

Working in Odoo TEchnologies

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

--Jignesh Mehta--
| 6 5 8
Surat, India
--Jignesh Mehta--

- I have 3+ years of Industry Experience, specializing Odoo Development, Analysis, Customization, Implementation, Integration.
- I have done many Customization modules in Sale, Purchase, Point of Sale, Inventory, CRM and much more. Also Worked in the Odoo Themes like Business Theme or E-Commerce Theme.
- Develop Jewelery Manufacturing process from Scratch. It have more than 10 Department. Develop PDF and Excel reports for this project around 150 per format.

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: 875 times
Last updated: 4/2/16, 1:07 AM