Browse Source

Merge PR #403 into 12.0

Signed-off-by pedrobaeza
pull/406/head
OCA-git-bot 5 years ago
parent
commit
0bfbe5b310
  1. 21
      contract/security/contract_security.xml

21
contract/security/contract_security.xml

@ -1,5 +1,19 @@
<odoo noupdate="1"> <odoo noupdate="1">
<record id="rule_contract_contract_multi_company" model="ir.rule">
<field name="name">Contract contract multi-company</field>
<field name="model_id" ref="model_contract_contract"/>
<field name="global" eval="True"/>
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
</record>
<record id="rule_contract_line_multi_company" model="ir.rule">
<field name="name">Contract line multi-company</field>
<field name="model_id" ref="model_contract_line"/>
<field name="global" eval="True"/>
<field name="domain_force">['|', ('contract_id.company_id', '=', False), ('contract_id.company_id', 'child_of', [user.company_id.id])]</field>
</record>
<record id="rule_contract_template_multi_company" model="ir.rule"> <record id="rule_contract_template_multi_company" model="ir.rule">
<field name="name">Contract template multi-company</field> <field name="name">Contract template multi-company</field>
<field name="model_id" ref="model_contract_template"/> <field name="model_id" ref="model_contract_template"/>
@ -7,4 +21,11 @@
<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', 'child_of', [user.company_id.id])]</field>
</record> </record>
<record id="rule_contract_template_line_multi_company" model="ir.rule">
<field name="name">Contract template line multi-company</field>
<field name="model_id" ref="model_contract_template_line"/>
<field name="global" eval="True"/>
<field name="domain_force">['|', ('contract_id.company_id', '=', False), ('contract_id.company_id', 'child_of', [user.company_id.id])]</field>
</record>
</odoo> </odoo>
Loading…
Cancel
Save