Skip to content

Commit 1e5d802

Browse files
committed
fix(spp_user_roles): use attributes with many2many widget to pass pre-commit
1 parent b9ed887 commit 1e5d802

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

spp_user_roles/views/role.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@
2020
<xpath expr="//field[@name='name']" position="after">
2121
<field name="role_type" />
2222
</xpath>
23-
<xpath expr="//field[@name='implied_ids']" position="replace">
24-
<field
25-
name="implied_ids"
26-
nolabel="1"
27-
domain="[('role_id', '=', False)]"
28-
/>
23+
<xpath expr="//field[@name='implied_ids']" position="attributes">
24+
<attribute name="domain">[('role_id', '=', False)]</attribute>
25+
<attribute name="widget">many2many</attribute>
2926
</xpath>
3027
<xpath
3128
expr="//field[@name='line_ids']/list/field[@name='user_id']"

0 commit comments

Comments
 (0)