Browse Source

[ADD] some demo data

pull/103/head
Holger Brunn 10 years ago
committed by Sandy Carter
parent
commit
43908340b7
  1. 3
      partner_relations/__openerp__.py
  2. 38
      partner_relations/data/demo.xml

3
partner_relations/__openerp__.py

@ -72,6 +72,9 @@ date.""",
'web_m2x_options', 'web_m2x_options',
'web_tree_many2one_clickable', 'web_tree_many2one_clickable',
], ],
"demo": [
"data/demo.xml",
],
"data": [ "data": [
"view/res_partner_relation_all.xml", "view/res_partner_relation_all.xml",
'view/res_partner.xml', 'view/res_partner.xml',

38
partner_relations/data/demo.xml

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="rel_type_assistant" model="res.partner.relation.type">
<field name="name">Is assistant of</field>
<field name="name_inverse">Has assistant</field>
<field name="contact_type_left">p</field>
<field name="contact_type_right">p</field>
</record>
<record id="rel_type_competitor" model="res.partner.relation.type">
<field name="name">Is competitor of</field>
<field name="name_inverse">Is competitor of</field>
<field name="contact_type_left">c</field>
<field name="contact_type_right">c</field>
</record>
<record id="rel_type_has_worked_for" model="res.partner.relation.type">
<field name="name">Has worked for</field>
<field name="name_inverse">Has former employee</field>
<field name="contact_type_left">p</field>
<field name="contact_type_right">c</field>
</record>
<record id="rel_1" model="res.partner.relation">
<field name="left_partner_id" ref="base.res_partner_12" />
<field name="right_partner_id" ref="base.res_partner_23" />
<field name="type_id" ref="rel_type_competitor" />
</record>
<record id="rel_2" model="res.partner.relation">
<field name="left_partner_id" ref="base.res_partner_13" />
<field name="right_partner_id" ref="base.res_partner_23" />
<field name="type_id" ref="rel_type_competitor" />
</record>
<record id="rel_3" model="res.partner.relation">
<field name="left_partner_id" ref="base.res_partner_12" />
<field name="right_partner_id" ref="base.res_partner_13" />
<field name="type_id" ref="rel_type_competitor" />
</record>
</data>
</openerp>
Loading…
Cancel
Save