我正在尝试从模型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)
但该元素并未从列表中消失。我还需要做其他事吗?我是以错误的方式做的吗?