product_view.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Product Form View Inherited -->
  5. <record id="view_product_template_form_multiple_image" model="ir.ui.view">
  6. <field name="name">product.template.form.view.inherited</field>
  7. <field name="model">product.template</field>
  8. <field name="inherit_id" ref="product.product_template_only_form_view"/>
  9. <field name="arch" type="xml">
  10. <xpath expr="//div[@name='options']" position="inside">
  11. <field name="multi_image" nolabel="1"/>
  12. <label for="multi_image"/>
  13. </xpath>
  14. <xpath expr="//div[@name='options']" position="inside">
  15. <div>
  16. <field name="is_flip_image" nolabel="1"/>
  17. <label for="is_flip_image"/>
  18. </div>
  19. </xpath>
  20. <xpath expr="//notebook" position="inside">
  21. <page attrs="{'invisible':[('multi_image','!=',True)]}" name="product multi image" string="Multi Imagen">
  22. <field name="images">
  23. <form string="Multiple Imagen">
  24. <group>
  25. <field name="name"/>
  26. <field name="alt"/>
  27. <field name="attach_type" widget='radio'/>
  28. <field name="image" widget="image"
  29. height='64'
  30. attrs="{'invisible': [('attach_type', '=', 'video')]}"/>
  31. <field name="video_type" attrs="{'invisible': [('attach_type', '=', 'image')]}"/>
  32. </group>
  33. <group col="4">
  34. <field name="cover_image" widget="image"
  35. height="64"
  36. attrs="{'invisible': ['|', ('attach_type', '=', 'image'), ('video_type', '=', 'youtube')]}"/>
  37. <label string="Es Requerido"
  38. attrs="{'invisible': ['|', ('attach_type', '=', 'image'), ('video_type', '=', 'youtube')]}"/>
  39. </group>
  40. <group>
  41. <field name="video_id"
  42. attrs="{'invisible': ['|', ('attach_type', '=', 'image'), ('video_type', '=', 'html5video')]}"/>
  43. <field name="video_ogv"
  44. attrs="{'invisible': ['|', ('attach_type', '=', 'image'), ('video_type', 'in', ('youtube', 'vimeo'))]}"/>
  45. <field name="video_webm"
  46. attrs="{'invisible': ['|', ('attach_type', '=', 'image'), ('video_type', 'in', ('youtube', 'vimeo'))]}"/>
  47. <field name="video_mp4"
  48. attrs="{'invisible': ['|', ('attach_type', '=', 'image'), ('video_type', 'in', ('youtube', 'vimeo'))]}"/>
  49. <field name="sequence"/>
  50. <field name="more_view_exclude"/>
  51. </group>
  52. </form>
  53. <tree>
  54. <field name="name"/>
  55. <field name="alt"/>
  56. <field name="attach_type"/>
  57. <field name="image"
  58. height="64"
  59. attrs="{'invisible': [('attach_type', '=', 'video')]}"/>
  60. <field name="video_type" attrs="{'invisible': [('attach_type', '=', 'image')]}"/>
  61. <field name="video_id" attrs="{'invisible': [('attach_type', '=', 'image')]}"/>
  62. <field name="sequence"/>
  63. <field name="more_view_exclude"/>
  64. </tree>
  65. </field>
  66. </page>
  67. <page attrs="{'invisible':[('is_flip_image','!=',True)]}" name="flip_image_page" string="Imagen Cambiante">
  68. <h4>Añadir giro de imagen que será visible en el producto en el sitio web</h4>
  69. <field name="flip_image" widget='image' height="74px"/>
  70. </page>
  71. </xpath>
  72. <field name="website_style_ids" position="after">
  73. <field name="product_style_tag_id"/>
  74. </field>
  75. </field>
  76. </record>
  77. <!-- Product Tag Form View-->
  78. <record id="form_view_for_biztech_product_tags" model="ir.ui.view">
  79. <field name="name">Biztech Product Tags Form View</field>
  80. <field name="model">biztech.product.tags</field>
  81. <field name="arch" type="xml">
  82. <form>
  83. <sheet>
  84. <group>
  85. <group>
  86. <field name="name"/>
  87. <field name="sequence" string="Sequencia"/>
  88. </group>
  89. <group>
  90. <field name="active"/>
  91. </group>
  92. </group>
  93. <notebook>
  94. <page string="Productos">
  95. <field name="product_ids"/>
  96. </page>
  97. </notebook>
  98. </sheet>
  99. </form>
  100. </field>
  101. </record>
  102. <!-- Product Tag List View-->
  103. <record id="list_view_for_biztech_product_tags" model="ir.ui.view">
  104. <field name="name">Biztech Product Tags List View</field>
  105. <field name="model">biztech.product.tags</field>
  106. <field name="arch" type="xml">
  107. <tree>
  108. <field name="name"/>
  109. <field name="sequence" string="Sequencia"/>
  110. <field name="active"/>
  111. </tree>
  112. </field>
  113. </record>
  114. <!-- Action for product tags -->
  115. <record id="action_for_biztech_product_tags" model="ir.actions.act_window">
  116. <field name="name">Etiqueta de Productos</field>
  117. <field name="type">ir.actions.act_window</field>
  118. <field name="res_model">biztech.product.tags</field>
  119. <field name="view_type">form</field>
  120. <field name="view_mode">list,form</field>
  121. </record>
  122. <!-- Menu for Product Tags -->
  123. <menuitem name="Product Tags"
  124. id="biztech_product_tags"
  125. parent="base.menu_base_config"
  126. sequence="70"
  127. action="action_for_biztech_product_tags"/>
  128. <!-- Product Sorting -->
  129. <!-- Product sorting form view -->
  130. <record id="biztech_form_view_for_product_sorting" model="ir.ui.view">
  131. <field name="name">Biztech Product Sorting Form View</field>
  132. <field name="model">biztech.product.sortby</field>
  133. <field name="arch" type="xml">
  134. <form name="Product Sorting">
  135. <sheet>
  136. <group>
  137. <group>
  138. <field name="name"/>
  139. <field name="sort_on"/>
  140. </group>
  141. <group>
  142. <field name="sort_type" string="Ordenar por"/>
  143. </group>
  144. </group>
  145. </sheet>
  146. </form>
  147. </field>
  148. </record>
  149. <!-- Product sorting list View -->
  150. <record id="biztech_list_view_for_product_sorting" model="ir.ui.view">
  151. <field name="name">Biztech Product Sorting List View</field>
  152. <field name="model">biztech.product.sortby</field>
  153. <field name="arch" type="xml">
  154. <tree name="Product Sortingng">
  155. <field name="name"/>
  156. <field name="sort_on"/>
  157. <field name="sort_type"/>
  158. </tree>
  159. </field>
  160. </record>
  161. <!-- Action for product sorting -->
  162. <record id="action_for_product_sorting" model="ir.actions.act_window">
  163. <field name="name">Clasificación de productos</field>
  164. <field name="res_model">biztech.product.sortby</field>
  165. <field name="view_type">form</field>
  166. <field name="view_mode">list,form</field>
  167. </record>
  168. <!-- Menu for product sorting -->
  169. <menuitem name="Product Sorting"
  170. id="sub_menu_sort_by"
  171. parent="base.menu_base_config"
  172. sequence="80"
  173. action="action_for_product_sorting"/>
  174. <!-- Product Public Category -->
  175. <record id="view_product_public_category_inherit" model="ir.ui.view">
  176. <field name="name">Inherited Product Public Category Form View</field>
  177. <field name="model">product.public.category</field>
  178. <field name="inherit_id" ref="website_sale.product_public_category_form_view"/>
  179. <field name="arch" type="xml">
  180. <xpath expr="//field[@name='sequence']" position="after">
  181. <field name="include_in_megamenu"/>
  182. </xpath>
  183. <xpath expr="//div[@class='oe_left']" position="attributes">
  184. <attribute name="style">width:500px;</attribute>
  185. </xpath>
  186. <xpath expr="//div[@class='oe_left']/group" position="after">
  187. <group attrs="{'invisible': [('include_in_megamenu', '=', False)]}">
  188. <field name="menu_id"
  189. domain= "[('is_megamenu', '=', True)]"
  190. attrs="{'required': [('include_in_megamenu', '=', True)]}"/>
  191. <field name="description"/>
  192. </group>
  193. </xpath>
  194. </field>
  195. </record>
  196. <!-- Website product paging -->
  197. <record id="action_product_per_page" model="ir.actions.act_window">
  198. <field name="name">Website Product Pagination</field>
  199. <field name="res_model">product.per.page</field>
  200. <field name="view_mode">list,form</field>
  201. <field name="context">{'search_default_my_websites':1}</field>
  202. </record>
  203. <record id="list_view_product_per_page" model="ir.ui.view">
  204. <field name="name">Product Per Page List View</field>
  205. <field name="model">product.per.page</field>
  206. <field name="arch" type="xml">
  207. <tree string="Paginación de Productos en Sitio web" create="false" delete="false">
  208. <field name="name"/>
  209. </tree>
  210. </field>
  211. </record>
  212. <record id="form_view_product_per_page" model="ir.ui.view">
  213. <field name="name">Product Per Page Form View</field>
  214. <field name="model">product.per.page</field>
  215. <field name="arch" type="xml">
  216. <form string="Paginación de Productos en Sitio web" create="false" delete="false">
  217. <sheet>
  218. <group>
  219. <field name="name"/>
  220. <field name="no_ids"/>
  221. </group>
  222. </sheet>
  223. </form>
  224. </field>
  225. </record>
  226. <record id="form_view_product_per_page_no" model="ir.ui.view">
  227. <field name="name">Product Per Page No Form View</field>
  228. <field name="model">product.per.page.no</field>
  229. <field name="arch" type="xml">
  230. <form string="Productos por página">
  231. <group>
  232. <field name="name"/>
  233. <field name="set_default_check"/>
  234. </group>
  235. </form>
  236. </field>
  237. </record>
  238. <record id="list_view_product_per_page_no" model="ir.ui.view">
  239. <field name="name">Product Per Page No List View</field>
  240. <field name="model">product.per.page.no</field>
  241. <field name="arch" type="xml">
  242. <tree editable="bottom">
  243. <field name="name"/>
  244. <field name="set_default_check"/>
  245. </tree>
  246. </field>
  247. </record>
  248. <!-- For website config settings -->
  249. <record id="view_website_config_settings_f_l_pager" model="ir.ui.view">
  250. <field name="name">Website config Template First Last Pager</field>
  251. <field name="model">website.config.settings</field>
  252. <field name="inherit_id" ref="website.view_website_config_settings"/>
  253. <field name="arch" type="xml">
  254. <xpath expr="/form/div/group[@string='Language']" position="after">
  255. <group string="Paginacion del Sitio Web">
  256. <field name="enable_first_last_pager"/>
  257. </group>
  258. </xpath>
  259. </field>
  260. </record>
  261. <record id="view_res_config_ppp" model="ir.ui.view">
  262. <field name="name">sale.config.settings</field>
  263. <field name="model">sale.config.settings</field>
  264. <field name="inherit_id" ref="sale.view_sales_config"/>
  265. <field name="arch" type="xml">
  266. <div name="customer feature" position="before">
  267. <group string="Website Product Paging">
  268. <button type="action"
  269. name="%(kingfisher_pro.action_product_per_page)d"
  270. string="Configure website product pagination" class="oe_link"/>
  271. </group>
  272. </div>
  273. </field>
  274. </record>
  275. <!-- Product style tag Form View-->
  276. <record id="form_view_for_biztech_product_style_tag" model="ir.ui.view">
  277. <field name="name">Biztech Product Style Tag Form View</field>
  278. <field name="model">biztech.product.style.tag</field>
  279. <field name="arch" type="xml">
  280. <form>
  281. <sheet>
  282. <group>
  283. <group>
  284. <field name="name"/>
  285. </group>
  286. <group>
  287. <field name="color"/>
  288. </group>
  289. </group>
  290. </sheet>
  291. </form>
  292. </field>
  293. </record>
  294. <!-- Product Tag List View-->
  295. <record id="list_view_for_biztech_product_style_tag" model="ir.ui.view">
  296. <field name="name">Biztech Product Style Tag List View</field>
  297. <field name="model">biztech.product.style.tag</field>
  298. <field name="arch" type="xml">
  299. <tree>
  300. <field name="name"/>
  301. <field name="color"/>
  302. </tree>
  303. </field>
  304. </record>
  305. <!-- Action for product style tag -->
  306. <record id="action_for_biztech_product_style_tag" model="ir.actions.act_window">
  307. <field name="name">Estilo para Etiquetas de Productos</field>
  308. <field name="type">ir.actions.act_window</field>
  309. <field name="res_model">biztech.product.style.tag</field>
  310. <field name="view_type">form</field>
  311. <field name="view_mode">list,form</field>
  312. </record>
  313. <!-- Menu for Product Tags -->
  314. <menuitem name="Estilo para Etiquetas"
  315. id="biztech_product_style_tag"
  316. parent="base.menu_base_config"
  317. sequence="80"
  318. action="action_for_biztech_product_style_tag"/>
  319. </data>
  320. </openerp>