trytond-party_company/party.xml

55 lines
2.3 KiB
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>
<!-- party -->
<record model="ir.rule.group" id="rule_group_party">
<field name="model" search="[('model', '=', 'party.party')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_party1">
<field name="domain"
eval="[('company', '=', Eval('user', {}).get('company', None))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_party"/>
</record>
<!-- address -->
<record model="ir.rule.group" id="rule_group_address">
<field name="model" search="[('model', '=', 'party.address')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_address1">
<field name="domain"
eval="[('company', '=', Eval('user', {}).get('company', None))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_address"/>
</record>
<!-- identifier -->
<record model="ir.rule.group" id="rule_group_identifier">
<field name="model" search="[('model', '=', 'party.identifier')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_identifier1">
<field name="domain"
eval="[('company', '=', Eval('user', {}).get('company', None))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_identifier"/>
</record>
<!-- contact mechanism -->
<record model="ir.rule.group" id="rule_group_contact_mechanism">
<field name="model" search="[('model', '=', 'party.contact_mechanism')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_contact_mechanism1">
<field name="domain"
eval="[('company', '=', Eval('user', {}).get('company', None))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_contact_mechanism"/>
</record>
</data>
</tryton>