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.

105 lines
4.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" 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. </group>
  68. </form>
  69. </field>
  70. </record>
  71. <record model="ir.ui.view" id="beesdoo_product_category_list">
  72. <field name="name">beesdoo.product.category.list</field>
  73. <field name="model">product.category</field>
  74. <field name="inherit_id" ref="product.product_category_list_view" />
  75. <field name="arch" type="xml">
  76. <field name="complete_name" position="after">
  77. <field name="profit_margin"></field>
  78. </field>
  79. </field>
  80. </record>
  81. <record model="ir.ui.view" id="beesdoo_product_category_form">
  82. <field name="name">beesdoo.product.category.form</field>
  83. <field name="model">product.category</field>
  84. <field name="inherit_id" ref="product.product_category_form_view" />
  85. <field name="arch" type="xml">
  86. <field name="parent_id" position="after">
  87. <field name="profit_margin"></field>
  88. </field>
  89. </field>
  90. </record>
  91. <record model="ir.ui.view" id="beesdoo_product_supplierinfo_tree_view">
  92. <field name="name">beesdoo.product.supplierinfo.tree</field>
  93. <field name="model">product.supplierinfo</field>
  94. <field name="inherit_id" ref="product.product_supplierinfo_tree_view" />
  95. <field name="arch" type="xml">
  96. <field name="price" position="replace">
  97. <field name="price"></field>
  98. </field>
  99. </field>
  100. </record>
  101. </odoo>