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.

54 lines
2.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2017 Grap, OCA
  3. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  4. <openerp><data>
  5. <!-- UNIT OF MEASURE CATEGS -->
  6. <!-- Form view -->
  7. <record id="product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom" model="ir.ui.view">
  8. <field name="model">product.uom.categ</field>
  9. <field name="inherit_id" ref="product.product_uom_categ_form_view"/>
  10. <field name="arch" type="xml">
  11. <field name="name" position="after">
  12. <field name="to_weigh" />
  13. <button name="action_recompute_to_weigh" string="Set 'to weigh' in each product of this category" type="object"/>
  14. </field>
  15. </field>
  16. </record>
  17. <!-- Tree view -->
  18. <record id="product_uom_categ_tree_view_inherit_pos_to_weight_by_product_uom" model="ir.ui.view">
  19. <field name="model">product.uom.categ</field>
  20. <field name="arch" type="xml">
  21. <tree>
  22. <field name="name"/>
  23. <field name="to_weigh" />
  24. </tree>
  25. </field>
  26. </record>
  27. <!-- UNITS OF MEASURE -->
  28. <!-- Form view -->
  29. <record id="product_uom_form_view_inherit_pos_to_weight_by_product_uom" model="ir.ui.view">
  30. <field name="model">product.uom</field>
  31. <field name="inherit_id" ref="product.product_uom_form_view"/>
  32. <field name="arch" type="xml">
  33. <field name="active" position="after">
  34. <field name="to_weigh" />
  35. </field>
  36. </field>
  37. </record>
  38. <!-- Tree view -->
  39. <record id="product_uom_tree_view_inherit_pos_to_weight_by_product_uom" model="ir.ui.view">
  40. <field name="model">product.uom</field>
  41. <field name="inherit_id" ref="product.product_uom_tree_view"/>
  42. <field name="arch" type="xml">
  43. <field name="category_id" position="after">
  44. <field name="to_weigh" />
  45. </field>
  46. </field>
  47. </record>
  48. </data></openerp>