config.xml 1.4 KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="pos_config" model="ir.ui.view">
  5. <field name="name">pos.config</field>
  6. <field name="model">pos.config</field>
  7. <field name="inherit_id" ref="point_of_sale.view_pos_config_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr='//sheet/group[1]' position='after'>
  10. <group string="POS Stock">
  11. <group>
  12. <field name="show_qty_available"/>
  13. </group>
  14. <group
  15. attrs="{'invisible':[('show_qty_available','=',False)]}">
  16. <field name="location_only"/>
  17. <field name="hide_product" attrs="{'invisible':[
  18. ('location_only','=',False)]}"/>
  19. </group>
  20. <group attrs="{'invisible':[('show_qty_available','=',False)]}">
  21. <field name="allow_out_of_stock"/>
  22. <field name="limit_qty" attrs="{'invisible':[('allow_out_of_stock','=',True)]}"
  23. style="width: 150px;"/>
  24. </group>
  25. </group>
  26. </xpath>
  27. </field>
  28. </record>
  29. </data>
  30. </openerp>