0
votes

I got problem while using many2many in attrs, it's fine with domain but got error while using in attrs. Do we have any solution or workaround for this issue?

<field name="visible_fields" widget="many2many_tags"/>
<field name="create_uid" attrs="{'invisible': [('id','not in', visible_fields or False)]}"/>
1

1 Answers

0
votes

I don't think the 'or operation' inside the right branch can be parsed. I would try something like this:

<field name="create_uid" attrs="{'invisible': ['|',('id','not in', visible_fields), ('id','=',False)]}"/>