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.

153 lines
6.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record model="ir.ui.view" id="beesdoo_product_form">
  4. <field name="name">bees.product.template.form</field>
  5. <field name="model">product.template</field>
  6. <field name="inherit_id" ref="product.product_template_only_form_view" />
  7. <field name="arch" type="xml">
  8. <field name="barcode" position="after">
  9. <button string="Generate Barcode" name="generate_barcode" type="object" colspan="2" attrs="{'invisible' : [('barcode','!=',False)]}" /> />
  10. </field>
  11. <field name="list_price" position="after">
  12. <field name="suggested_price" widget='monetary' options="{'currency_field': 'currency_id'}" />
  13. </field>
  14. <field name="invoice_policy" position="attributes">
  15. <attribute name="invisible">1</attribute>
  16. </field>
  17. <field name="purchase_method" position="attributes">
  18. <attribute name="invisible">1</attribute>
  19. </field>
  20. <field name="route_ids" position="attributes">
  21. <attribute name="invisible">1</attribute>
  22. </field>
  23. <group name="sale_condition" position="attributes">
  24. <attribute name="invisible">1</attribute>
  25. </group>
  26. <field name="property_account_creditor_price_difference"
  27. position="attributes">
  28. <attribute name="invisible">1</attribute>
  29. </field>
  30. <xpath expr="//group[@name='inventory']/.." position="after">
  31. <page string="Label">
  32. <group>
  33. <group name="label">
  34. <field name="total_with_vat"/>
  35. <field name="display_weight"/>
  36. <field name="display_unit"/>
  37. <field name="default_reference_unit"/>
  38. <field name="total_with_vat_by_unit" />
  39. <field name="total_deposit" />
  40. </group>
  41. <group>
  42. <field name="main_seller_id"/>
  43. <field name="eco_label"/>
  44. <field name="local_label"/>
  45. <field name="fair_label"/>
  46. <field name="origin_label"/>
  47. <field name="label_to_be_printed"/>
  48. <field name="label_last_printed"/>
  49. </group>
  50. </group>
  51. <group>
  52. <field name="note" />
  53. </group>
  54. </page>
  55. <page string="Scale labels" attrs="{'invisible':[('to_weight','=',False)]}">
  56. <group>
  57. <group name="scale_label">
  58. <field name="deadline_for_sale"/>
  59. <field name="deadline_for_consumption"/>
  60. <field name="ingredients"/>
  61. <field name="scale_label_info_1"/>
  62. <field name="scale_label_info_2"/>
  63. </group>
  64. <group>
  65. <field name="scale_sale_unit"/>
  66. </group>
  67. </group>
  68. </page>
  69. </xpath>
  70. </field>
  71. </record>
  72. <record model="ir.ui.view" id="beesdoo_product_label_form">
  73. <field name="name">bees.product.label.form</field>
  74. <field name="model">beesdoo.product.label</field>
  75. <field name="arch" type="xml">
  76. <form>
  77. <group>
  78. <field name="name" />
  79. <field name="type" />
  80. <field name="color_code" />
  81. <field name="active" />
  82. </group>
  83. </form>
  84. </field>
  85. </record>
  86. <record model="ir.ui.view" id="beesdoo_product_label_tree">
  87. <field name="name">bees.product.label.tree</field>
  88. <field name="model">beesdoo.product.label</field>
  89. <field name="arch" type="xml">
  90. <tree editable="Top">
  91. <field name="name" />
  92. <field name="type" />
  93. <field name="color_code" />
  94. <field name="active" />
  95. </tree>
  96. </field>
  97. </record>
  98. <record model="ir.ui.view" id="beesdoo_product_category_list">
  99. <field name="name">beesdoo.product.category.list</field>
  100. <field name="model">product.category</field>
  101. <field name="inherit_id" ref="product.product_category_list_view" />
  102. <field name="arch" type="xml">
  103. <field name="complete_name" position="after">
  104. <field name="profit_margin"></field>
  105. </field>
  106. </field>
  107. </record>
  108. <record model="ir.ui.view" id="beesdoo_product_category_form">
  109. <field name="name">beesdoo.product.category.form</field>
  110. <field name="model">product.category</field>
  111. <field name="inherit_id" ref="product.product_category_form_view" />
  112. <field name="arch" type="xml">
  113. <field name="parent_id" position="after">
  114. <field name="profit_margin"></field>
  115. </field>
  116. </field>
  117. </record>
  118. <record model="ir.ui.view" id="beesdoo_product_supplierinfo_tree_view">
  119. <field name="name">beesdoo.product.supplierinfo.tree</field>
  120. <field name="model">product.supplierinfo</field>
  121. <field name="inherit_id" ref="product.product_supplierinfo_tree_view" />
  122. <field name="arch" type="xml">
  123. <field name="price" position="replace">
  124. <field name="price"></field>
  125. </field>
  126. </field>
  127. </record>
  128. <record model="ir.actions.act_window" id="action_labels">
  129. <field name="name">Product Labels</field>
  130. <field name="res_model">beesdoo.product.label</field>
  131. <field name="view_mode">tree,form</field>
  132. </record>
  133. <menuitem id="label_configuration_menu" name="Labels" parent="product.prod_config_main"
  134. action="action_labels" sequence="20"/>
  135. <record id="beesdoo_product_uom_categ_form" model="ir.ui.view">
  136. <field name="name">product.uom.categ.form</field>
  137. <field name="model">product.uom.categ</field>
  138. <field name="inherit_id" ref="product.product_uom_categ_form_view" />
  139. <field name="arch" type="xml">
  140. <field name="name" position="after">
  141. <field name="type"/>
  142. </field>
  143. </field>
  144. </record>
  145. </odoo>