Skip to content

Commit eb28357

Browse files
committed
[FIX] res_partner_operating_unit: operating_unit_ids group negation
Ensures `operating_unit_ids` can be used in `domain` despite being visible only to users in the `operating_unit.group_multi_operating_unit` group. Fixes: ``` Field 'operating_unit_ids' used in domain of <field name="property_product_pricelist"> ( [ '|', ('operating_unit_id', 'in', operating_unit_ids), ('operating_unit_id', '=', False), ] ) is restricted to the group(s) operating_unit.group_multi_operating_unit. ```
1 parent 0fc7e35 commit eb28357

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

res_partner_operating_unit/views/res_partner_view.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
options="{'no_create': True}"
1515
widget="many2many_tags"
1616
/>
17+
<field
18+
name="operating_unit_ids"
19+
groups="!operating_unit.group_multi_operating_unit"
20+
invisible="1"
21+
/>
1722
</field>
1823
</field>
1924
</record>
@@ -28,6 +33,11 @@
2833
groups="operating_unit.group_multi_operating_unit"
2934
widget="many2many_tags"
3035
/>
36+
<field
37+
name="operating_unit_ids"
38+
groups="!operating_unit.group_multi_operating_unit"
39+
column_invisible="1"
40+
/>
3141
</field>
3242
</field>
3343
</record>

0 commit comments

Comments
 (0)