|
|
<?xml version="1.0" encoding="UTF-8"?> <openerp> <data>
<record id="tree_res_partner_relation_all" model="ir.ui.view"> <field name="model">res.partner.relation.all</field> <field name="arch" type="xml"> <tree string="Partner Relations" colors="gray:(date_end and date_end < current_date) or not active;blue:date_start > current_date" editable="top" > <field name="this_partner_id" readonly="1" /> <field name="type_selection_id" required="True" domain="[ '|', ('contact_type_this', '=', False), ('contact_type_this', '=', contact_type), ]" options="{'create': false, 'create_edit': false}" /> <field name="other_partner_id" attrs="{ 'readonly': [('type_selection_id', '=', False)], }" options="{'create': false, 'create_edit': false}" /> <field name="date_start" /> <field name="date_end" /> <field name="active" /> <field name="contact_type" invisible="1"/> </tree> </field> </record>
<record id="form_res_partner_relation_all" model="ir.ui.view"> <field name="model">res.partner.relation.all</field> <field name="arch" type="xml"> <form string="Partner relation"> <group> <field name="this_partner_id" /> <field name="type_selection_id" /> <field name="other_partner_id" /> </group> <group> <field name="date_start" /> <field name="date_end" /> <field name="active" /> </group> </form> </field> </record>
<record id="search_res_partner_relation_all" model="ir.ui.view"> <field name="model">res.partner.relation.all</field> <field name="arch" type="xml"> <search string="Search Relations"> <field name="this_partner_id"/> <field name="other_partner_id"/> <field name="type_id"/> <field name="active"/> <group expand="0" string="Group By"> <filter string="Other Partner" context="{'group_by': 'other_partner_id'}"/> <filter string="Relationship Type" context="{'group_by': 'type_id'}"/> </group> </search> </field> </record>
<record id="action_res_partner_relation_all" model="ir.actions.act_window"> <field name="name">Relations</field> <field name="res_model">res.partner.relation.all</field> <field name="view_type">form</field> <field name="view_mode">tree</field> <field name="view_id" ref="tree_res_partner_relation_all"/> <field name="search_view_id" ref="search_res_partner_relation_all"/> <field name="domain">[('active', '=', True)]</field> <field name="help" type="html"> <p class="oe_view_nocontent_create"> Record and track your partners' relations. Relations may be linked to other partners with a type either directly or inversely. </p> </field> </record>
</data> </openerp>
|