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.

41 lines
1.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="assets_backend" name="pos_remove_pos_category assets" inherit_id="web.assets_backend">
  5. <xpath expr="." position="inside">
  6. <script type="text/javascript" src="/pos_remove_pos_category/static/src/js/pos_remove_pos_category.js"></script>
  7. </xpath>
  8. <xpath expr="//script[@src='/point_of_sale/static/src/js/widgets.js']" position="attributes">
  9. <attribute name="src">/pos_remove_pos_category/static/src/js/widgets2.js</attribute>
  10. </xpath>
  11. </template>
  12. <record id="product_category_form_view" model="ir.ui.view">
  13. <field name="model">product.category</field>
  14. <field name="inherit_id" ref="product.product_category_form_view"/>
  15. <!-- Priority to avoid to break account and logistics fields-->
  16. <field name="priority">20</field>
  17. <field name="arch" type="xml">
  18. <xpath expr="//group[@name='parent']" position="inside">
  19. <field name="image"
  20. widget="image"
  21. class="oe_left oe_avatar"
  22. options='{"size": [100, 100]}' />
  23. <field name="available_in_pos"/>
  24. </xpath>
  25. </field>
  26. </record>
  27. <record id="product_category_list_view" model="ir.ui.view">
  28. <field name="model">product.category</field>
  29. <field name="inherit_id" ref="product.product_category_list_view"/>
  30. <field name="arch" type="xml">
  31. <xpath expr="//field[@name='complete_name']" position="after">
  32. <field name="available_in_pos" string="Available in POS"/>
  33. </xpath>
  34. </field>
  35. </record>
  36. </data>
  37. </openerp>