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.

128 lines
5.4 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" 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. </xpath>
  56. </field>
  57. </record>
  58. <record model="ir.ui.view" id="beesdoo_product_label_form">
  59. <field name="name">bees.product.label.form</field>
  60. <field name="model">beesdoo.product.label</field>
  61. <field name="arch" type="xml">
  62. <form>
  63. <group>
  64. <field name="name" />
  65. <field name="type" />
  66. <field name="color_code" />
  67. <field name="active" />
  68. </group>
  69. </form>
  70. </field>
  71. </record>
  72. <record model="ir.ui.view" id="beesdoo_product_label_tree">
  73. <field name="name">bees.product.label.tree</field>
  74. <field name="model">beesdoo.product.label</field>
  75. <field name="arch" type="xml">
  76. <tree editable="Top">
  77. <field name="name" />
  78. <field name="type" />
  79. <field name="color_code" />
  80. <field name="active" />
  81. </tree>
  82. </field>
  83. </record>
  84. <record model="ir.ui.view" id="beesdoo_product_category_list">
  85. <field name="name">beesdoo.product.category.list</field>
  86. <field name="model">product.category</field>
  87. <field name="inherit_id" ref="product.product_category_list_view" />
  88. <field name="arch" type="xml">
  89. <field name="complete_name" position="after">
  90. <field name="profit_margin"></field>
  91. </field>
  92. </field>
  93. </record>
  94. <record model="ir.ui.view" id="beesdoo_product_category_form">
  95. <field name="name">beesdoo.product.category.form</field>
  96. <field name="model">product.category</field>
  97. <field name="inherit_id" ref="product.product_category_form_view" />
  98. <field name="arch" type="xml">
  99. <field name="parent_id" position="after">
  100. <field name="profit_margin"></field>
  101. </field>
  102. </field>
  103. </record>
  104. <record model="ir.ui.view" id="beesdoo_product_supplierinfo_tree_view">
  105. <field name="name">beesdoo.product.supplierinfo.tree</field>
  106. <field name="model">product.supplierinfo</field>
  107. <field name="inherit_id" ref="product.product_supplierinfo_tree_view" />
  108. <field name="arch" type="xml">
  109. <field name="price" position="replace">
  110. <field name="price"></field>
  111. </field>
  112. </field>
  113. </record>
  114. <record model="ir.actions.act_window" id="action_labels">
  115. <field name="name">Product Labels</field>
  116. <field name="res_model">beesdoo.product.label</field>
  117. <field name="view_mode">tree,form</field>
  118. </record>
  119. <menuitem id="label_configuration_menu" name="Labels" parent="product.prod_config_main"
  120. action="action_labels" sequence="20"/>
  121. </odoo>