Replace eval domain user companies to company

This commit is contained in:
Raimon Esteve 2018-02-14 09:36:10 +01:00
parent 1b26d76809
commit c406b39d12
5 changed files with 10 additions and 10 deletions

View File

@ -10,7 +10,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rule_activity_activity1">
<field name="domain"
eval="['OR', ('companies', 'in', Eval('user', {}).get('companies', [])), ('companies', 'in', [])]"
eval="['OR', ('companies', 'in', [Eval('user', {}).get('company', None)]), ('companies', 'in', [])]"
pyson="1"/>
<field name="rule_group" ref="rule_group_activity_activity"/>
</record>

View File

@ -10,7 +10,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rule_bank1">
<field name="domain"
eval="['OR', ('companies', 'in', Eval('user', {}).get('companies', [])), ('companies', 'in', [])]"
eval="['OR', ('companies', 'in', [Eval('user', {}).get('company', None)]), ('companies', 'in', [])]"
pyson="1"/>
<field name="rule_group" ref="rule_group_bank"/>
</record>
@ -21,7 +21,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rule_bank_account1">
<field name="domain"
eval="['OR', ('companies', 'in', Eval('user', {}).get('companies', [])), ('companies', 'in', [])]"
eval="['OR', ('companies', 'in', [Eval('user', {}).get('company', None)]), ('companies', 'in', [])]"
pyson="1"/>
<field name="rule_group" ref="rule_group_bank_account"/>
</record>

View File

@ -10,7 +10,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rule_carrier1">
<field name="domain"
eval="['OR', ('companies', 'in', Eval('user', {}).get('companies', [])), ('companies', 'in', [])]"
eval="['OR', ('companies', 'in', [Eval('user', {}).get('company', None)]), ('companies', 'in', [])]"
pyson="1"/>
<field name="rule_group" ref="rule_group_carrier"/>
</record>

View File

@ -10,7 +10,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rule_commission_agent1">
<field name="domain"
eval="['OR', ('companies', 'in', Eval('user', {}).get('companies', [])), ('companies', 'in', [])]"
eval="['OR', ('companies', 'in', [Eval('user', {}).get('company', None)]), ('companies', 'in', [])]"
pyson="1"/>
<field name="rule_group" ref="rule_group_commission_agent"/>
</record>
@ -24,7 +24,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rule_commission_manager1">
<field name="domain"
eval="['OR', ('companies', 'in', Eval('user', {}).get('companies', [])), ('companies', 'in', [])]"
eval="['OR', ('companies', 'in', [Eval('user', {}).get('company', None)]), ('companies', 'in', [])]"
pyson="1"/>
<field name="rule_group" ref="rule_group_commission_manager"/>
</record>

View File

@ -16,7 +16,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rule_party1">
<field name="domain"
eval="['OR', ('companies', 'in', Eval('user', {}).get('companies', [])), ('companies', 'in', []), ('active', '=', False)]"
eval="['OR', ('companies', 'in', [Eval('user', {}).get('company', None)]), ('companies', 'in', []), ('active', '=', False)]"
pyson="1"/>
<field name="rule_group" ref="rule_group_party"/>
</record>
@ -28,7 +28,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rule_address1">
<field name="domain"
eval="['OR', ('companies', 'in', Eval('user', {}).get('companies', [])), ('companies', 'in', [])]"
eval="['OR', ('companies', 'in', [Eval('user', {}).get('company', None)]), ('companies', 'in', [])]"
pyson="1"/>
<field name="rule_group" ref="rule_group_address"/>
</record>
@ -40,7 +40,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rule_identifier1">
<field name="domain"
eval="['OR', ('companies', 'in', Eval('user', {}).get('companies', [])), ('companies', 'in', [])]"
eval="['OR', ('companies', 'in', [Eval('user', {}).get('company', None)]), ('companies', 'in', [])]"
pyson="1"/>
<field name="rule_group" ref="rule_group_identifier"/>
</record>
@ -52,7 +52,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rule_contact_mechanism1">
<field name="domain"
eval="['OR', ('companies', 'in', Eval('user', {}).get('companies', [])), ('companies', 'in', [])]"
eval="['OR', ('companies', 'in', [Eval('user', {}).get('company', None)]), ('companies', 'in', [])]"
pyson="1"/>
<field name="rule_group" ref="rule_group_contact_mechanism"/>
</record>