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.

49 lines
2.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2015-Today GRAP (http://www.grap.coop)
  4. @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. -->
  7. <odoo>
  8. <record id="view_pos_payment_change_wizard_form" model="ir.ui.view">
  9. <field name="model">pos.payment.change.wizard</field>
  10. <field name="arch" type="xml">
  11. <form>
  12. <group col="4">
  13. <field name="order_id" />
  14. <field name="amount_total" invisible="1"/>
  15. <field name="old_line_ids" colspan="4">
  16. <tree>
  17. <field name="old_journal_id"/>
  18. <field name="amount" sum="Total"/>
  19. </tree>
  20. </field>
  21. <newline />
  22. <field name="new_line_ids" colspan="4"
  23. context="{'new_line_ids': new_line_ids, 'amount_total': amount_total}">
  24. <tree editable="bottom">
  25. <field name="new_journal_id" options="{'no_open': True, 'no_create_edit': True}"/>
  26. <field name="amount" sum="Total"/>
  27. </tree>
  28. </field>
  29. </group>
  30. <footer>
  31. <button name="button_change_payment" string="Change Payments"
  32. type="object" class="oe_highlight"/>
  33. <button string="Cancel" class="oe_link" special="cancel" />
  34. </footer>
  35. </form>
  36. </field>
  37. </record>
  38. <record id="action_pos_payment_change_wizard" model="ir.actions.act_window">
  39. <field name="name">Change Payments</field>
  40. <field name="res_model">pos.payment.change.wizard</field>
  41. <field name="view_type">form</field>
  42. <field name="view_mode">form</field>
  43. <field name="target">new</field>
  44. </record>
  45. </odoo>