Skip to content
Permalink
Browse files

[WIP] *_* : add remaning domain

  • Loading branch information...
mba-odoo committed Mar 26, 2019
1 parent a0ffcc1 commit b6521026224fd7ed7ae890db84536955e394f242
@@ -102,7 +102,7 @@
<field name="name">Journal multi-company</field>
<field name="model_id" ref="model_account_journal_group"/>
<field name="global" eval="True"/>
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
<field name="domain_force">['|',('company_id','=',False),('company_id','=',user.company_id.id)]</field>
</record>

<record id="journal_comp_rule" model="ir.rule">
@@ -32,7 +32,7 @@
<field name="global" eval="True"/>
<field name="domain_force">['|',
('company_id', '=', False),
('company_id', 'child_of', [user.company_id.id]),
('company_id', '=', user.company_id.id),
]
</field>
</record>
@@ -42,7 +42,7 @@
<field name="global" eval="True"/>
<field name="domain_force">['|',
('company_id', '=', False),
('company_id', 'child_of', [user.company_id.id]),
('company_id', '=', user.company_id.id),
]
</field>
</record>
@@ -31,7 +31,7 @@
<record id="goal_global_multicompany" model="ir.rule">
<field name="name">Multicompany rule on challenges</field>
<field name="model_id" ref="model_gamification_goal"/>
<field name="domain_force">[('user_id.company_id', 'child_of', [user.company_id.id])]</field>
<field name="domain_force">[('user_id.company_id', '=', user.company_id.id)]</field>
<field name="global" eval="True"/>
</record>

@@ -21,7 +21,7 @@
<field name="name">HR Contract: Multi Company</field>
<field name="model_id" ref="model_hr_contract"/>
<field name="global" eval="True"/>
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', '=', user.company_id.id)]</field>
</record>

</data>
@@ -55,13 +55,13 @@
<field name="name">Expense multi company rule</field>
<field name="model_id" ref="model_hr_expense"/>
<field eval="True" name="global"/>
<field name="domain_force">['|',('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
<field name="domain_force">['|',('company_id', '=', False), ('company_id', '=', user.company_id.id)]</field>
</record>
<record id="hr_expense_report_comp_rule" model="ir.rule">
<field name="name">Expense Report multi company rule</field>
<field name="model_id" ref="model_hr_expense_sheet"/>
<field eval="True" name="global"/>
<field name="domain_force">['|',('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
<field name="domain_force">['|',('company_id', '=', False), ('company_id', '=', user.company_id.id)]</field>
</record>

</data>
@@ -40,7 +40,7 @@
<field name="global" eval="True"/>
<field name="domain_force">['|',
('company_id', '=', False),
('company_id', 'child_of', [user.company_id.id]),
('company_id', '=', user.company_id.id),
]</field>
</record>

@@ -67,7 +67,7 @@
<field name="global" eval="True"/>
<field name="domain_force">['|',
('company_id', '=', False),
('company_id', 'child_of', [user.company_id.id]),
('company_id', '=', user.company_id.id),
]</field>
</record>

@@ -76,7 +76,7 @@
<field name="name">Stock Operation Type multi-company</field>
<field name="model_id" search="[('model','=','stock.picking.type')]" model="ir.model"/>
<field name="global" eval="True"/>
<field name="domain_force">['|', ('warehouse_id', '=', False), '|',('warehouse_id.company_id','=',False),('warehouse_id.company_id','child_of',[user.company_id.id])]</field>
<field name="domain_force">['|', ('warehouse_id', '=', False), '|',('warehouse_id.company_id','=',False),('warehouse_id.company_id','=',user.company_id.id)]</field>
</record>


@@ -147,21 +147,21 @@
<field name="model_id" ref="model_res_company"/>
<field eval="False" name="global"/>
<field name="groups" eval="[(6, 0, [ref('base.group_portal')])]"/>
<field name="domain_force">[('id','child_of',[user.company_id.id])]</field>
<field name="domain_force">[('id','=',user.company_id.id)]</field>
</record>
<record id="res_company_rule_employee" model="ir.rule">
<field name="name">company rule employee</field>
<field name="model_id" ref="model_res_company"/>
<field eval="False" name="global"/>
<field name="groups" eval="[(6, 0, [ref('base.group_user')])]"/>
<field name="domain_force">[('id','child_of',[user.company_id.id])]</field>
<field name="domain_force">[('id','=',user.company_id.id)]</field>
</record>
<record id="res_company_rule_public" model="ir.rule">
<field name="name">company rule public</field>
<field name="model_id" ref="model_res_company"/>
<field eval="False" name="global"/>
<field name="groups" eval="[(6, 0, [ref('base.group_public')])]"/>
<field name="domain_force">[('id','child_of',[user.company_id.id])]</field>
<field name="domain_force">[('id','=',user.company_id.id)]</field>
</record>
<record id="res_company_rule_erp_manager" model="ir.rule">
<field name="name">company rule erp manager</field>
@@ -176,7 +176,7 @@
<field name="name">user rule</field>
<field name="model_id" ref="model_res_users"/>
<field eval="True" name="global"/>
<field name="domain_force">[('company_ids','child_of',[user.company_id.id])]</field>
<field name="domain_force">[('company_ids','=',user.company_id.id)]</field>
</record>
</data>
</odoo>

0 comments on commit b652102

Please sign in to comment.
You can’t perform that action at this time.