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.

69 lines
2.7 KiB

9 years ago
  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="invoice_policy" position="attributes">
  12. <attribute name="invisible">1</attribute>
  13. </field>
  14. <field name="purchase_method" position="attributes">
  15. <attribute name="invisible">1</attribute>
  16. </field>
  17. <field name="route_ids" position="attributes">
  18. <attribute name="invisible">1</attribute>
  19. </field>
  20. <group name="sale_condition" position="attributes">
  21. <attribute name="invisible">1</attribute>
  22. </group>
  23. <field name="property_account_creditor_price_difference" position="attributes">
  24. <attribute name="invisible">1</attribute>
  25. </field>
  26. <xpath expr="//group[@name='inventory']/.." position="after">
  27. <page string="Label">
  28. <group>
  29. <group name="label">
  30. <field name="total_with_vat"/>
  31. <field name="display_weight"/>
  32. <field name="display_unit" />
  33. <field name="default_reference_unit"/>
  34. <field name="total_with_vat_by_unit" />
  35. <field name="total_deposit" />
  36. </group>
  37. <group>
  38. <field name="main_seller_id" />
  39. <field name="eco_label"/>
  40. <field name="local_label"/>
  41. <field name="fair_label"/>
  42. <field name="origin_label"/>
  43. <field name="label_to_be_printed"/>
  44. <field name="label_last_printed"/>
  45. </group>
  46. </group>
  47. <group>
  48. <field name="note" />
  49. </group>
  50. </page>
  51. </xpath>
  52. </field>
  53. </record>
  54. <record model="ir.ui.view" id="beesdoo_product_label_form">
  55. <field name="name">bees.product.label.form</field>
  56. <field name="model">beesdoo.product.label</field>
  57. <field name="arch" type="xml">
  58. <form>
  59. <group>
  60. <field name="name" />
  61. <field name="type" />
  62. <field name="color_code" />
  63. </group>
  64. </form>
  65. </field>
  66. </record>
  67. </odoo>