flectra/addons/purchase_indent/security/purchase_indent_security.xml

46 lines
1.8 KiB
XML
Raw Permalink Normal View History

2018-01-24 07:12:32 +01:00
<?xml version="1.0" encoding="utf-8"?>
<flectra noupdate="1">
<record model="ir.rule" id="purchase_indent_comp_rule">
<field name="name">Purchase Indent multi-company</field>
<field name="model_id" ref="model_purchase_indent"/>
<field name="global" eval="True"/>
<field name="domain_force">
['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]
</field>
</record>
<record model="ir.rule" id="purchase_indent_line_comp_rule">
<field name="name">Purchase Indent Line multi-company</field>
<field name="model_id" ref="model_purchase_indent_line"/>
<field name="global" eval="True"/>
<field name="domain_force">
['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]
</field>
</record>
2018-01-29 12:35:08 +01:00
<!-- Multi Branch -->
<record model="ir.rule" id="purchase_indent_multi_branch_rule">
<field name="name">Purchase Indent multi-branch</field>
<field name="model_id" ref="model_purchase_indent"/>
<field name="global" eval="True"/>
<field name="domain_force">
['|', ('branch_id', '=', False), '|', ('branch_id', '=', user.default_branch_id.id),
('branch_id', 'in', user.branch_ids.ids)]
</field>
</record>
<record model="ir.rule" id="purchase_indent_line_multi_branch_rule">
<field name="name">Purchase Indent Line multi-branch</field>
<field name="model_id" ref="model_purchase_indent_line"/>
<field name="global" eval="True"/>
<field name="domain_force">
['|', ('branch_id', '=', False), '|', ('branch_id', '=', user.default_branch_id.id),
('branch_id', 'in', user.branch_ids.ids)]
</field>
</record>
2018-01-24 07:12:32 +01:00
</flectra>