Skip to Content
Menu
This question has been flagged

Hello.

I'been trying to remove links between user groups with XML code in a custom module, but it doesn't work and I don't know why. 

I found about implied_ids field and how to treat it in XML, I think I'm doing right but nothing happens when I install my module.

Here you have:

<odoo>
<data>
<record id="base.group_user" model="res.groups">
<field name="implied_ids" eval="[(3, ref('stock.group_stock_multi_locations'))]"/>
<field name="implied_ids" eval="[(3, ref('stock.group_stock_multi_warehouses'))]"/>
<field name="implied_ids" eval="[(3, ref('stock.group_adv_location'))]"/>
</record>

<record id="stock.group_adv_location" model="res.groups">
<field name="implied_ids" eval="[(3, ref('base.group_user'))]"/>
</record>

<record id="stock.group_stock_multi_warehouses" model="res.groups">
<field name="implied_ids" eval="[(3, ref('base.group_user'))]"/>
</record>

<record id="stock.group_adv_location" model="res.groups">
<field name="implied_ids" eval="[(3, ref('base.group_user'))]"/>
</record>
</data>
</odoo>

First I tried deleting links from base.group_user, then I thought I had to do it from the other side, but no... It still doesn't work...

Can somebody help me?

Avatar
Discard
Related Posts Replies Views Activity
2
Mar 24
4098
1
Nov 19
4147
2
Sep 19
3851
2
Feb 24
1758
1
Feb 24
954