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. <!-- Copyright 2018 Tecnativa - Jairo Llopis
  3. License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). -->
  4. <odoo>
  5. <record id="view_pos_config_form" model="ir.ui.view">
  6. <field name="name">pos.config.form.view</field>
  7. <field name="model">pos.config</field>
  8. <field name="priority">100</field>
  9. <field name="inherit_id" ref="point_of_sale.view_pos_config_form"/>
  10. <field name="arch" type="xml">
  11. <xpath expr="//field[@name='pricelist_id']" position="replace"/>
  12. <xpath expr="//sheet">
  13. <group
  14. name="pricelist_setting"
  15. string="Pricelists"
  16. groups="product.group_sale_pricelist">
  17. <group>
  18. <field name="use_pricelist"/>
  19. </group>
  20. <group attrs="{'invisible': [('use_pricelist','=',False)], 'required' : [('use_pricelist', '=', True)]}">
  21. <field
  22. name="available_pricelist_ids"
  23. widget="many2many_tags"/>
  24. <field
  25. name="pricelist_id"
  26. domain="[('id', 'in', available_pricelist_ids and available_pricelist_ids[0] and available_pricelist_ids[0][2] or False)]"
  27. options="{'no_create': True}"/>
  28. <button
  29. name="%(product.product_pricelist_action2)d"
  30. icon="fa-arrow-right"
  31. type="action"
  32. string="Pricelists"
  33. class="btn-link"/>
  34. </group>
  35. </group>
  36. </xpath>
  37. </field>
  38. </record>
  39. </odoo>