mirror of
https://github.com/NaN-tic/trytond-stock_location_company.git
synced 2023-12-14 04:22:56 +01:00
Fix global company rules
This commit is contained in:
parent
305356a367
commit
14f46ae308
1 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue