product_attribute.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- == FUEL == -->
  4. <record id="product_attribute_fuel" model="product.attribute">
  5. <field name="name">Fuel</field>
  6. </record>
  7. <record id="product_attribute_value_gasoline" model="product.attribute.value">
  8. <field name="name">Gasoline</field>
  9. <field name="attribute_id" ref="product_attribute_fuel"/>
  10. </record>
  11. <record id="product_attribute_value_diesel" model="product.attribute.value">
  12. <field name="name">Diesel</field>
  13. <field name="attribute_id" ref="product_attribute_fuel"/>
  14. </record>
  15. <!-- == ENGINE == -->
  16. <record id="product_attribute_engine" model="product.attribute">
  17. <field name="name">Engine</field>
  18. </record>
  19. <!-- Gasoline Engines -->
  20. <record id="product_attribute_value_218i" model="product.attribute.value">
  21. <field name="name">218i</field>
  22. <field name="attribute_id" ref="product_attribute_engine"/>
  23. <field name="product_id" ref="product_engine_218i_coupe"/>
  24. </record>
  25. <record id="product_attribute_value_220i" model="product.attribute.value">
  26. <field name="name">220i</field>
  27. <field name="attribute_id" ref="product_attribute_engine"/>
  28. <field name="product_id" ref="product_engine_220i_coupe"/>
  29. </record>
  30. <record id="product_attribute_value_228i" model="product.attribute.value">
  31. <field name="name">228i</field>
  32. <field name="attribute_id" ref="product_attribute_engine"/>
  33. <field name="product_id" ref="product_engine_228i_coupe"/>
  34. </record>
  35. <record id="product_attribute_value_m235i" model="product.attribute.value">
  36. <field name="name">M235i</field>
  37. <field name="attribute_id" ref="product_attribute_engine"/>
  38. <field name="product_id" ref="product_engine_m235i_coupe"/>
  39. </record>
  40. <record id="product_attribute_value_m235i_xdrive" model="product.attribute.value">
  41. <field name="name">M235i xDrive</field>
  42. <field name="attribute_id" ref="product_attribute_engine"/>
  43. <field name="product_id" ref="product_engine_m2351_xdrive_coupe"/>
  44. </record>
  45. <!-- Diesel Engines -->
  46. <record id="product_attribute_value_218d" model="product.attribute.value">
  47. <field name="name">218d</field>
  48. <field name="attribute_id" ref="product_attribute_engine"/>
  49. <field name="product_id" ref="product_engine_218d_coupe"/>
  50. </record>
  51. <record id="product_attribute_value_220d" model="product.attribute.value">
  52. <field name="name">220d</field>
  53. <field name="attribute_id" ref="product_attribute_engine"/>
  54. <field name="product_id" ref="product_engine_228i_coupe"/>
  55. </record>
  56. <record id="product_attribute_value_220d_xdrive" model="product.attribute.value">
  57. <field name="name">220d xDrive</field>
  58. <field name="attribute_id" ref="product_attribute_engine"/>
  59. <field name="product_id" ref="product_engine_220d_xdrive_coupe"/>
  60. </record>
  61. <record id="product_attribute_value_225d" model="product.attribute.value">
  62. <field name="name">225d</field>
  63. <field name="attribute_id" ref="product_attribute_engine"/>
  64. <field name="product_id" ref="product_engine_225d_coupe"/>
  65. </record>
  66. <!-- == LINES == -->
  67. <record id="product_attribute_model_line" model="product.attribute">
  68. <field name="name">Lines</field>
  69. </record>
  70. <record id="product_attribute_value_sport_line" model="product.attribute.value">
  71. <field name="name">Sport Line</field>
  72. <field name="attribute_id" ref="product_attribute_model_line"/>
  73. <field name="product_id" ref="product_bmw_sport_line"/>
  74. </record>
  75. <record id="product_attribute_value_model_sport_line" model="product.attribute.value">
  76. <field name="name">Model Sport Line</field>
  77. <field name="attribute_id" ref="product_attribute_model_line"/>
  78. <field name="product_id" ref="product_bmw_model_sport_line"/>
  79. </record>
  80. <record id="product_attribute_value_luxury_line" model="product.attribute.value">
  81. <field name="name">Luxury Line</field>
  82. <field name="attribute_id" ref="product_attribute_model_line"/>
  83. <field name="product_id" ref="product_bmw_luxury_line"/>
  84. </record>
  85. <record id="product_attribute_value_model_luxury_line" model="product.attribute.value">
  86. <field name="name">Model Luxury Line</field>
  87. <field name="attribute_id" ref="product_attribute_model_line"/>
  88. <field name="product_id" ref="product_bmw_model_luxury_line"/>
  89. </record>
  90. <record id="product_attribute_value_model_m_sport" model="product.attribute.value">
  91. <field name="name">Model M Sport</field>
  92. <field name="attribute_id" ref="product_attribute_model_line"/>
  93. <field name="product_id" ref="product_bmw_model_m_sport"/>
  94. </record>
  95. <record id="product_attribute_value_model_advantage" model="product.attribute.value">
  96. <field name="name">Model Advantage</field>
  97. <field name="attribute_id" ref="product_attribute_model_line"/>
  98. <field name="product_id" ref="product_bmw_model_advantage"/>
  99. </record>
  100. <!-- == COLOR == -->
  101. <record id="product_attribute_color" model="product.attribute">
  102. <field name="name">Color</field>
  103. </record>
  104. <record id="product_attribute_value_red" model="product.attribute.value">
  105. <field name="name">Red</field>
  106. <field name="attribute_id" ref="product_attribute_color"/>
  107. </record>
  108. <record id="product_attribute_value_silver" model="product.attribute.value">
  109. <field name="name">Silver</field>
  110. <field name="attribute_id" ref="product_attribute_color"/>
  111. <field name="product_id" ref="product_paint_silver"/>
  112. </record>
  113. <record id="product_attribute_value_black" model="product.attribute.value">
  114. <field name="name">Black</field>
  115. <field name="attribute_id" ref="product_attribute_color"/>
  116. </record>
  117. <!-- == RIMS == -->
  118. <record id="product_attribute_rims" model="product.attribute">
  119. <field name="name">Rims</field>
  120. </record>
  121. <record id="product_attribute_value_rims_378" model="product.attribute.value">
  122. <field name="name">V-spoke 16"</field>
  123. <field name="attribute_id" ref="product_attribute_rims"/>
  124. </record>
  125. <record id="product_attribute_value_rims_387" model="product.attribute.value">
  126. <field name="name">V-spoke 18"</field>
  127. <field name="attribute_id" ref="product_attribute_rims"/>
  128. </record>
  129. <record id="product_attribute_value_rims_384" model="product.attribute.value">
  130. <field name="name">Double-spoke 18"</field>
  131. <field name="attribute_id" ref="product_attribute_rims"/>
  132. </record>
  133. <!-- == TAPISTRY == -->
  134. <record id="product_attribute_tapistry" model="product.attribute">
  135. <field name="name">Tapistry</field>
  136. </record>
  137. <record id="product_attribute_value_tapistry_black" model="product.attribute.value">
  138. <field name="name">Black</field>
  139. <field name="attribute_id" ref="product_attribute_tapistry"/>
  140. </record>
  141. <record id="product_attribute_value_tapistry_oyster_black" model="product.attribute.value">
  142. <field name="name">Oyster/Black</field>
  143. <field name="attribute_id" ref="product_attribute_tapistry"/>
  144. </record>
  145. <record id="product_attribute_value_tapistry_coral_red_black" model="product.attribute.value">
  146. <field name="name">Coral Red/Black</field>
  147. <field name="attribute_id" ref="product_attribute_tapistry"/>
  148. </record>
  149. <!-- == TRANSMISSION == -->
  150. <record id="product_attribute_transmission" model="product.attribute">
  151. <field name="name">Transmission</field>
  152. </record>
  153. <record id="product_attribute_value_steptronic" model="product.attribute.value">
  154. <field name="name">Automatic (Steptronic)</field>
  155. <field name="attribute_id" ref="product_attribute_transmission"/>
  156. <field name="product_id" ref="product_2_series_transmission_steptronic"/>
  157. </record>
  158. <record id="product_attribute_value_steptronic_sport" model="product.attribute.value">
  159. <field name="name">Automatic Sport (Steptronic)</field>
  160. <field name="attribute_id" ref="product_attribute_transmission"/>
  161. <field name="product_id" ref="product_2_series_transmission_steptronic_sport"/>
  162. </record>
  163. <!-- == Options == -->
  164. <record id="product_attribute_options" model="product.attribute">
  165. <field name="name">Options</field>
  166. </record>
  167. <record id="product_attribute_value_armrest" model="product.attribute.value">
  168. <field name="name">Armrest</field>
  169. <field name="attribute_id" ref="product_attribute_options"/>
  170. <field name="product_id" ref="product_2_series_armrest"/>
  171. </record>
  172. <record id="product_attribute_value_smoker_package" model="product.attribute.value">
  173. <field name="name">Smoker Package</field>
  174. <field name="attribute_id" ref="product_attribute_options"/>
  175. <field name="product_id" ref="product_2_series_smoker_package"/>
  176. </record>
  177. <record id="product_attribute_value_sunroof" model="product.attribute.value">
  178. <field name="name">Sunroof</field>
  179. <field name="attribute_id" ref="product_attribute_options"/>
  180. <field name="product_id" ref="product_2_series_sunroof"/>
  181. </record>
  182. <record id="product_attribute_value_tow_hook" model="product.attribute.value">
  183. <field name="name">Tow hook</field>
  184. <field name="attribute_id" ref="product_attribute_options"/>
  185. <field name="product_id" ref="product_2_series_towhook"/>
  186. </record>
  187. <!-- == Attribute Lines == -->
  188. <record id="product_attribute_line_2_series_fuel" model="product.attribute.line">
  189. <field name="product_tmpl_id" ref="bmw_2_series"/>
  190. <field name="attribute_id" ref="product_attribute_fuel"/>
  191. <field name="value_ids" eval="[(6,0,[
  192. ref('product_configurator.product_attribute_value_gasoline'),
  193. ref('product_configurator.product_attribute_value_diesel')]
  194. )]"/>
  195. <field name="required" eval="True"/>
  196. </record>
  197. <record id="product_attribute_line_2_series_engine" model="product.attribute.line">
  198. <field name="product_tmpl_id" ref="bmw_2_series"/>
  199. <field name="attribute_id" ref="product_attribute_engine"/>
  200. <field name="value_ids" eval="[(6,0,[
  201. ref('product_configurator.product_attribute_value_218i'),
  202. ref('product_configurator.product_attribute_value_220i'),
  203. ref('product_configurator.product_attribute_value_228i'),
  204. ref('product_configurator.product_attribute_value_m235i'),
  205. ref('product_configurator.product_attribute_value_m235i_xdrive'),
  206. ref('product_configurator.product_attribute_value_218d'),
  207. ref('product_configurator.product_attribute_value_220d'),
  208. ref('product_configurator.product_attribute_value_220d_xdrive'),
  209. ref('product_configurator.product_attribute_value_225d'),
  210. ]
  211. )]"/>
  212. <field name="required" eval="True"/>
  213. </record>
  214. <record id="product_attribute_line_2_series_model_line" model="product.attribute.line">
  215. <field name="product_tmpl_id" ref="bmw_2_series"/>
  216. <field name="attribute_id" ref="product_attribute_model_line"/>
  217. <field name="value_ids" eval="[(6,0,[
  218. ref('product_configurator.product_attribute_value_sport_line'),
  219. ref('product_configurator.product_attribute_value_model_sport_line'),
  220. ref('product_configurator.product_attribute_value_luxury_line'),
  221. ref('product_configurator.product_attribute_value_model_luxury_line'),
  222. ref('product_configurator.product_attribute_value_model_m_sport'),
  223. ref('product_configurator.product_attribute_value_model_advantage'),
  224. ]
  225. )]"/>
  226. <field name="required" eval="False"/>
  227. </record>
  228. <record id="product_attribute_line_2_series_color" model="product.attribute.line">
  229. <field name="product_tmpl_id" ref="bmw_2_series"/>
  230. <field name="attribute_id" ref="product_attribute_color"/>
  231. <field name="value_ids" eval="[(6,0,[
  232. ref('product_configurator.product_attribute_value_red'),
  233. ref('product_configurator.product_attribute_value_black'),
  234. ref('product_configurator.product_attribute_value_silver')]
  235. )]"/>
  236. <field name="required" eval="True"/>
  237. </record>
  238. <record id="product_attribute_line_2_series_rims" model="product.attribute.line">
  239. <field name="product_tmpl_id" ref="bmw_2_series"/>
  240. <field name="attribute_id" ref="product_attribute_rims"/>
  241. <field name="value_ids" eval="[(6,0,[
  242. ref('product_configurator.product_attribute_value_rims_378'),
  243. ref('product_configurator.product_attribute_value_rims_387'),
  244. ref('product_configurator.product_attribute_value_rims_384')]
  245. )]"/>
  246. <field name="required" eval="True"/>
  247. </record>
  248. <record id="product_attribute_line_2_series_tapistry" model="product.attribute.line">
  249. <field name="product_tmpl_id" ref="bmw_2_series"/>
  250. <field name="attribute_id" ref="product_attribute_tapistry"/>
  251. <field name="value_ids" eval="[(6,0,[
  252. ref('product_configurator.product_attribute_value_tapistry_black'),
  253. ref('product_configurator.product_attribute_value_tapistry_oyster_black'),
  254. ref('product_configurator.product_attribute_value_tapistry_coral_red_black')]
  255. )]"/>
  256. <field name="required" eval="True"/>
  257. </record>
  258. <record id="product_attribute_line_2_series_transmission" model="product.attribute.line">
  259. <field name="product_tmpl_id" ref="bmw_2_series"/>
  260. <field name="attribute_id" ref="product_attribute_transmission"/>
  261. <field name="value_ids" eval="[(6,0,[
  262. ref('product_configurator.product_attribute_value_steptronic'),
  263. ref('product_configurator.product_attribute_value_steptronic_sport'),
  264. ]
  265. )]"/>
  266. <field name="required" eval="True"/>
  267. </record>
  268. <record id="product_attribute_line_2_series_options" model="product.attribute.line">
  269. <field name="product_tmpl_id" ref="bmw_2_series"/>
  270. <field name="attribute_id" ref="product_attribute_options"/>
  271. <field name="value_ids" eval="[(6,0,[
  272. ref('product_configurator.product_attribute_value_armrest'),
  273. ref('product_configurator.product_attribute_value_smoker_package'),
  274. ref('product_configurator.product_attribute_value_sunroof'),
  275. ref('product_configurator.product_attribute_value_tow_hook'),
  276. ]
  277. )]"/>
  278. <field name="required" eval="True"/>
  279. <field name="multi" eval="True"/>
  280. </record>
  281. </odoo>