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.


Add implied_ids to existing group via XML

Jerome Guerriat
on 12/7/15, 3:47 AM 765 views

Hi everyone!

I have created a new group for "limited salesman", which can view less informations than the default salesman group. The main definition of my group is:

<record id="group_sale_limited" model="res.groups">
<field name="name">Group for limited salesman</field>
<field name="comment">[...]</field>
<field name="category_id" ref="base.module_category_sales_management"/>

Now, i would like this group to be added as an "implied" group for the existing salesman group (so, users added to the base salesman group would also be added to my custom group). I'd like to do this in XML, by i haven't found a way to do it so far. Here is what i tried:

<record id="base.group_sale_salesman" model="res.groups">
<field name="implied_ids" eval="[(4, ref('my_module.group_sale_limited'))]"/>

But this doesn't seem to work, as the base.group_sale_salesman doesnt have "group for limited salesman" in its "inherited" tab.

ow, i know that i could manually add it, and i could also do it in python, but then i couldn't ensure that the group is correctly added when the module is installed....Could anyone help me doing this?
Thanks a lot!

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: 12/7/15, 3:47 AM
Seen: 765 times
Last updated: 12/7/15, 9:38 AM