trytond-party_company/carrier.xml
?ngel ?lvarez 20d91d9da2 Display ids and rule names on access error
issue8093
review60551002
2019-04-13 09:21:45 +02:00

19 lines
829 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_carrier1">
<field name="domain"
eval="['OR', ('companies', 'in', [Eval('user', {}).get('company', None)]), ('companies', 'in', [])]"
pyson="1"/>
<field name="rule_group" ref="rule_group_carrier"/>
</record>
</data>
</tryton>