You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?xml version="1.0" encoding="UTF-8"?> <openerp> <data>
<record id="form_res_partner_relation" model="ir.ui.view"> <field name="model">res.partner.relation</field> <field type="xml" name="arch"> <form string="Partner Relation"> <sheet> <field name="left_partner_id" /> <field name="type_id" /> <field name="right_partner_id" /> </sheet> </form> </field> </record>
<record id="tree_res_partner_relation" model="ir.ui.view"> <field name="model">res.partner.relation</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="left_partner_id" options="{'create': false, 'create_edit': false}" /> <field name="type_selection_id" required="True" options="{'create': false, 'create_edit': false}"/> <field name="right_partner_id" options="{'create': false, 'create_edit': false}" /> <field name="date_start" /> <field name="date_end" /> <field name="active" /> </tree> </field> </record>
<record id="search_res_partner_relation" model="ir.ui.view"> <field name="model">res.partner.relation</field> <field name="arch" type="xml"> <search string="Search Relations"> <field name="any_partner_id"/> <field name="left_partner_id"/> <field name="right_partner_id"/> <field name="type_id"/> <field name="active"/> <group expand="0" string="Group By"> <filter string="Left Partner" context="{'group_by': 'left_partner_id'}"/> <filter string="Right Partner" context="{'group_by': 'right_partner_id'}"/> <filter string="Relationship Type" context="{'group_by': 'type_id'}"/> </group> </search> </field> </record>
<record id="action_res_partner_relation" model="ir.actions.act_window"> <field name="name">Relations</field> <field name="res_model">res.partner.relation</field> <field name="view_type">form</field> <field name="view_mode">tree</field> <field name="view_id" ref="tree_res_partner_relation"/> <field name="search_view_id" ref="search_res_partner_relation"/> <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>
<record id="action_show_right_relation_partners" model="ir.actions.server"> <field name="sequence" eval="5"/> <field name="state">code</field> <field name="type">ir.actions.server</field> <field name="model_id" ref="model_res_partner_relation"/> <field name="code">action = self.get_action_related_partners(cr, uid, context.get('active_ids', []), dict(context or {}, partner_relations_show_side='right'))</field> <field name="condition">True</field> <field name="name">Show partners</field> </record>
<record id="action_show_right_relation_partners_value" model="ir.values"> <field name="name">Show partners</field> <field name="key">action</field> <field name="key2">client_action_multi</field> <field name="model">res.partner.relation.all</field> <field name="value" eval="'ir.actions.server,%d' % ref('partner_relations.action_show_right_relation_partners')" /> </record>
</data> </openerp>
|