如何从many2many字段中删除元素?

时间:2015-11-13 23:09:56

标签: odoo-8 odoo

我正在尝试从模型many2many中的res.groups列表中删除组元素。特别是我试图从员工(implied_ids字段)中删除“分析会计”组:

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

我使用数字3,因为我在this question中读到了它:

(3, ID) => cut the link to the linked record with id = ID 
           (delete the relationship between the two objects but does not delete the target object itself)

但该元素并未从列表中消失。我还需要做其他事吗?我是以错误的方式做的吗?

0 个答案:

没有答案