Skip to content

Commit dc3348b

Browse files
committed
fix(spp_user_roles): exclude role-backing groups from Groups dropdown
UI-created roles auto-generate backing res.groups records that then appear in the Groups tab dropdown of other roles. Add domain filter on implied_ids to exclude groups linked to roles.
1 parent aaa9001 commit dc3348b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

spp_user_roles/views/role.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
<xpath expr="//field[@name='name']" position="after">
2121
<field name="role_type" />
2222
</xpath>
23+
<xpath expr="//field[@name='implied_ids']" position="attributes">
24+
<attribute
25+
name="domain"
26+
>[('role_id', '=', False)]</attribute>
27+
</xpath>
2328
<xpath
2429
expr="//field[@name='line_ids']/list/field[@name='user_id']"
2530
position="attributes"

0 commit comments

Comments
 (0)