Skip to content

Commit 275c0c8

Browse files
authored
Merge pull request #159 from OpenSPP/fix/role-groups-dropdown-filter
fix(spp_user_roles): exclude role-backing groups from Groups dropdown
2 parents aaa9001 + 1e5d802 commit 275c0c8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spp_user_roles/views/role.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
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 name="domain">[('role_id', '=', False)]</attribute>
25+
<attribute name="widget">many2many</attribute>
26+
</xpath>
2327
<xpath
2428
expr="//field[@name='line_ids']/list/field[@name='user_id']"
2529
position="attributes"

0 commit comments

Comments
 (0)