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.

106 lines
5.0 KiB

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <odoo>
  3. <!-- Added partner categories and partners to this file, because it
  4. turned out to be a bad idea to rely on demo data in base module,
  5. that can change from release to release. Only dependency on
  6. countries remain. They are less likely to change/disappear.
  7. -->
  8. <!-- Partner relation types -->
  9. <record id="rel_type_assistant" model="res.partner.relation.type">
  10. <field name="name">Is assistant of</field>
  11. <field name="name_inverse">Has assistant</field>
  12. <field name="contact_type_left">p</field>
  13. <field name="contact_type_right">p</field>
  14. </record>
  15. <record id="rel_type_competitor" model="res.partner.relation.type">
  16. <field name="name">Is competitor of</field>
  17. <field name="name_inverse">Is competitor of</field>
  18. <field name="contact_type_left">c</field>
  19. <field name="contact_type_right">c</field>
  20. <field name="is_symmetric" eval="True" />
  21. </record>
  22. <record id="rel_type_has_worked_for" model="res.partner.relation.type">
  23. <field name="name">Has worked for</field>
  24. <field name="name_inverse">Has former employee</field>
  25. <field name="contact_type_left">p</field>
  26. <field name="contact_type_right">c</field>
  27. </record>
  28. <!-- Categories -->
  29. <record id="res_partner_category_pmr_0" model="res.partner.category">
  30. <field name="name">Washing Companies</field>
  31. </record>
  32. <record id="res_partner_category_pmr_4" model="res.partner.category">
  33. <field name="name">Washing Gold</field>
  34. <field name="parent_id" ref="res_partner_category_pmr_0" />
  35. </record>
  36. <record id="res_partner_category_pmr_5" model="res.partner.category">
  37. <field name="name">Washing Silver</field>
  38. <field name="parent_id" ref="res_partner_category_pmr_0" />
  39. </record>
  40. <record id="res_partner_category_pmr_11" model="res.partner.category">
  41. <field name="name">Washing Services</field>
  42. <field name="parent_id" ref="res_partner_category_pmr_0" />
  43. </record>
  44. <!-- Partners -->
  45. <record id="res_partner_pmr_great" model="res.partner">
  46. <field name="name">Great Washing Powder Company</field>
  47. <field
  48. name="category_id"
  49. eval="[(6, 0, [ref('res_partner_category_pmr_11'), ref('res_partner_category_pmr_4')])]"
  50. />
  51. <field name="is_company">1</field>
  52. <field name="city">Le Bourget du Lac</field>
  53. <field name="zip">73377</field>
  54. <field name="phone">+33 4 49 23 44 54</field>
  55. <field name="country_id" ref="base.fr" />
  56. <field name="street">93, Press Avenue</field>
  57. <field name="email">great@yourcompany.example.com</field>
  58. <field name="website">http://www.great.com</field>
  59. </record>
  60. <record id="res_partner_pmr_best" model="res.partner">
  61. <field name="name">Best Washing Powder Company</field>
  62. <field
  63. name="category_id"
  64. eval="[(6, 0, [ref('res_partner_category_pmr_4'), ref('res_partner_category_pmr_11')])]"
  65. />
  66. <field name="is_company">1</field>
  67. <field name="city">Champs sur Marne</field>
  68. <field name="zip">77420</field>
  69. <field name="country_id" ref="base.fr" />
  70. <field name="email">best@yourcompany.example.com</field>
  71. <field name="phone">+33 1 64 61 04 01</field>
  72. <field name="street">12 rue Albert Einstein</field>
  73. <field name="website">http://www.best.com/</field>
  74. </record>
  75. <record id="res_partner_pmr_super" model="res.partner">
  76. <field name="name">Super Washing Powder Company</field>
  77. <field name="category_id" eval="[(6,0,[ref('res_partner_category_pmr_5')])]" />
  78. <field name="is_company">1</field>
  79. <field name="street">3rd Floor, Room 3-C,</field>
  80. <field
  81. name="street2"
  82. >Carretera Panamericana, Km 1, Urb. Delgado Chalbaud</field>
  83. <field name="city">Caracas</field>
  84. <field name="zip">1090</field>
  85. <field name="email">super@yourcompany.example.com</field>
  86. <field name="phone">+58 212 681 0538</field>
  87. <field name="country_id" ref="base.ve" />
  88. <field name="website">super.com</field>
  89. </record>
  90. <!-- Relations -->
  91. <record id="rel_1" model="res.partner.relation">
  92. <field name="left_partner_id" ref="res_partner_pmr_great" />
  93. <field name="right_partner_id" ref="res_partner_pmr_super" />
  94. <field name="type_id" ref="rel_type_competitor" />
  95. </record>
  96. <record id="rel_2" model="res.partner.relation">
  97. <field name="left_partner_id" ref="res_partner_pmr_best" />
  98. <field name="right_partner_id" ref="res_partner_pmr_super" />
  99. <field name="type_id" ref="rel_type_competitor" />
  100. </record>
  101. <record id="rel_3" model="res.partner.relation">
  102. <field name="left_partner_id" ref="res_partner_pmr_great" />
  103. <field name="right_partner_id" ref="res_partner_pmr_best" />
  104. <field name="type_id" ref="rel_type_competitor" />
  105. </record>
  106. </odoo>