Odoo Help


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.


How to hide a Messaging menu for custom groups in odoo

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


| 5 2 5
kerala, India

Working as a Odoo Functional and Technical Expert

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 4 8
Surat, India
--Jignesh Mehta--

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

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)


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