33 lines
1.8 KiB
XML
33 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
<data noupdate="1">
|
|
<record id="voucher_comp_rule" model="ir.rule">
|
|
<field name="name">Voucher multi-company</field>
|
|
<field name="model_id" ref="model_account_voucher"/>
|
|
<field eval="True" name="global"/>
|
|
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
|
|
</record>
|
|
<record id="voucher_line_comp_rule" model="ir.rule">
|
|
<field name="name">Voucher Line multi-company</field>
|
|
<field name="model_id" ref="model_account_voucher_line"/>
|
|
<field eval="True" name="global"/>
|
|
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
|
|
</record>
|
|
<record id="ir_rule_voucher_branch"
|
|
model="ir.rule">
|
|
<field name="model_id" ref="account_voucher.model_account_voucher"/>
|
|
<field name="domain_force">['|',('branch_id','=', False),'|',('branch_id','=',user.default_branch_id.id), ('branch_id','in', [b.id for b in user.branch_ids])]</field>
|
|
<field name="name">Vouchers Branch</field>
|
|
<field name="global" eval="True"/>
|
|
</record>
|
|
<record id="ir_rule_voucher_line_branch"
|
|
model="ir.rule">
|
|
<field name="model_id"
|
|
ref="account_voucher.model_account_voucher_line"/>
|
|
<field name="domain_force">['|',('branch_id','=', False),'|',('branch_id','=',user.default_branch_id.id), ('branch_id','in', [b.id for b in user.branch_ids])]</field>
|
|
<field name="name">Voucher lines branch</field>
|
|
<field name="global" eval="True"/>
|
|
</record>
|
|
</data>
|
|
</flectra>
|