Fix global company rules

This commit is contained in:
Jared Esparza 2022-05-19 09:30:51 +02:00
parent 305356a367
commit 14f46ae308

View file

@ -12,7 +12,11 @@
<field name="global_p" eval="True"/> <field name="global_p" eval="True"/>
</record> </record>
<record model="ir.rule" id="rule_group_location_company1"> <record model="ir.rule" id="rule_group_location_company1">
<field name="domain" eval="['OR', ('company', 'in', Eval('user', {}).get('companies', [])), ('company', '=', None)]" pyson="1"/> <field name="domain" eval="[('company', 'in', Eval('companies', []))]" pyson="1"/>
<field name="rule_group" ref="rule_group_location_company"/>
</record>
<record model="ir.rule" id="rule_group_location_company2">
<field name="domain" eval="[('company', '=', None)]" pyson="1"/>
<field name="rule_group" ref="rule_group_location_company"/> <field name="rule_group" ref="rule_group_location_company"/>
</record> </record>
</data> </data>