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"
  5. inherit_id="web.assets_backend">
  6. <xpath expr="." position="inside">
  7. <script type="text/javascript" src="/pos_remove_pos_category/static/src/js/pos_remove_pos_category.js"></script>
  8. </xpath>
  9. </template>
  10. <record id="product_category_form_view" model="ir.ui.view">
  11. <field name="model">product.category</field>
  12. <field name="inherit_id" ref="product.product_category_form_view"/>
  13. <!-- Priority to avoid to break account and logistics fields-->
  14. <field name="priority">20</field>
  15. <field name="arch" type="xml">
  16. <xpath expr="//group[@name='parent']" position="inside">
  17. <field name="available_in_pos"/>
  18. </xpath>
  19. <field name="name" position="after">
  20. <div class="oe_bottom" style="margin-top: 10px;">
  21. <field name="image_medium"
  22. widget="image"
  23. class="oe_left oe_avatar"
  24. options='{"size": [100, 100]}'/>
  25. </div>
  26. </field>
  27. </field>
  28. </record>
  29. <record id="product_category_list_view" model="ir.ui.view">
  30. <field name="model">product.category</field>
  31. <field name="inherit_id" ref="product.product_category_list_view"/>
  32. <field name="arch" type="xml">
  33. <xpath expr="//field[@name='complete_name']" position="after">
  34. <field name="available_in_pos" string="Available in POS"/>
  35. </xpath>
  36. </field>
  37. </record>
  38. </data>
  39. </openerp>