mirror of
https://github.com/NaN-tic/trytond-party_company.git
synced 2023-12-14 03:32:57 +01:00
20d91d9da2
issue8093 review60551002
19 lines
829 B
XML
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>
|