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.

45 lines
1.8 KiB

  1. <?xml version="1.0"?>
  2. <!--
  3. Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
  4. @author Quentin DUPONT (quentin.dupont@grap.coop)
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
  6. -->
  7. <odoo>
  8. <record id="view_pos_config_form" model="ir.ui.view">
  9. <field name="model">pos.config</field>
  10. <field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
  11. <field name="arch" type="xml">
  12. <xpath expr="//field[@name='iface_precompute_cash']/../.." position="after">
  13. <div class="col-12 col-lg-6 o_setting_box">
  14. <div class="o_setting_right_pane">
  15. <label for="autosolve_pos_move_reason"/>
  16. <field name="autosolve_pos_move_reason"/>
  17. </div>
  18. </div>
  19. <div class="col-12 col-lg-6 o_setting_box">
  20. <div class="o_setting_right_pane">
  21. <label for="autosolve_limit"/>
  22. <div class="text-muted">
  23. Limit to display autosolve button
  24. </div>
  25. <field name="autosolve_limit"/>
  26. </div>
  27. </div>
  28. </xpath>
  29. </field>
  30. </record>
  31. <record id="view_pos_config_kanban" model="ir.ui.view">
  32. <field name="model">pos.config</field>
  33. <field name="inherit_id" ref="point_of_sale.view_pos_config_kanban"/>
  34. <field name="arch" type="xml">
  35. <xpath expr="//button[@name='open_existing_session_cb']" position="after">
  36. <button t-if="_.contains(['closing_control'], record.current_session_state.raw_value)" class="btn btn-primary" name="open_new_session" type="object">New Session</button>
  37. </xpath>
  38. </field>
  39. </record>
  40. </odoo>