Permalink
Browse files

[FIX] account_payment: partial payment

- Activate Invoice Online Payments
- Create an invoice for 2000, make a partial payment of 500.
- Send the portal link to the client
- Open the portal link => the amount due is 1500
- Pay the invoice

The amount to pay is 2000 instead of 1500.

opw-1909118

closes #29284
  • Loading branch information...
nim-odoo committed Dec 5, 2018
1 parent 053bb45 commit df3922f396369fcf7120c5b651b735b3041045ab
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/account_payment/models/payment.py
@@ -20,7 +20,7 @@ def render_invoice_button(self, invoice, submit_txt=None, render_values=None):
values.update(render_values)
return self.acquirer_id.with_context(submit_class='btn btn-primary', submit_txt=submit_txt or _('Pay Now')).sudo().render(
self.reference,
invoice.amount_total,
invoice.residual_signed,
invoice.currency_id.id,
values=values,
)

0 comments on commit df3922f

Please sign in to comment.