payment_refund_wizard_views.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="payment_refund_wizard_view_form" model="ir.ui.view">
  4. <field name="name">payment.refund.wizard.form</field>
  5. <field name="model">payment.refund.wizard</field>
  6. <field name="arch" type="xml">
  7. <form string="Refund">
  8. <field name="has_pending_refund" invisible="1"/>
  9. <div class="alert alert-warning"
  10. id="alert_draft_refund_tx"
  11. role="alert"
  12. attrs="{'invisible': [('has_pending_refund', '=', False)]}">
  13. <p>
  14. <strong>Warning!</strong> There is a refund pending for this payment.
  15. Wait a moment for it to be processed. If the refund is still pending in a
  16. few minutes, please check your payment provider configuration.
  17. </p>
  18. </div>
  19. <group>
  20. <group>
  21. <field name="payment_id" invisible="1"/>
  22. <field name="transaction_id" invisible="1"/>
  23. <field name="currency_id" invisible="1"/>
  24. <field name="support_refund" invisible="1"/>
  25. <field name="payment_amount"/>
  26. <field name="refunded_amount"
  27. attrs="{'invisible': [('refunded_amount', '&lt;=', 0)]}"/>
  28. <field name="amount_available_for_refund"/>
  29. <field name="amount_to_refund"
  30. attrs="{'readonly': [('support_refund', '=', 'full_only')]}"/>
  31. </group>
  32. </group>
  33. <footer>
  34. <button string="Refund" type="object" name="action_refund" class="btn-primary"/>
  35. <button string="Close" special="cancel" class="btn-secondary"/>
  36. </footer>
  37. </form>
  38. </field>
  39. </record>
  40. </odoo>