trytond-party_company/carrier.xml

18 lines
788 B
XML

<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data depends="carrier">
<!-- carrier -->
<record model="ir.rule.group" id="rule_group_carrier">
<field name="name">Carrier Company Rule</field>
<field name="model" search="[('model', '=', 'carrier')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_carrier_companies">
<field name="domain" eval="['OR', ('companies', 'in', Eval('companies', [])), ('companies', 'in', [])]" pyson="1"/>
<field name="rule_group" ref="rule_group_carrier"/>
</record>
</data>
</tryton>