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.

43 lines
1.7 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" />
  15. <newline />
  16. <field name="line_ids" colspan="4"
  17. context="{'line_ids': line_ids, 'amount_total': amount_total}">
  18. <tree string="Payment Lines" editable="bottom">
  19. <field name="new_journal_id" options="{'no_open': True, 'no_create_edit': True}"/>
  20. <field name="amount" sum="Total"/>
  21. </tree>
  22. </field>
  23. </group>
  24. <footer>
  25. <button name="button_change_payment" string="Change Payments"
  26. type="object" class="oe_highlight"/>
  27. <button string="Cancel" class="oe_link" special="cancel" />
  28. </footer>
  29. </form>
  30. </field>
  31. </record>
  32. <record id="action_pos_payment_change_wizard" model="ir.actions.act_window">
  33. <field name="name">Change Payments</field>
  34. <field name="res_model">pos.payment.change.wizard</field>
  35. <field name="view_type">form</field>
  36. <field name="view_mode">form</field>
  37. <field name="target">new</field>
  38. </record>
  39. </odoo>