From 54eddda79a45d0ca29743737c816757589292f3f Mon Sep 17 00:00:00 2001 From: Johan Demaret Rivarola Date: Wed, 10 Jul 2019 15:14:17 +0000 Subject: [PATCH] [FIX] account_payment: post accounting-pocalypse aftermath Some leftovers of https://github.com/odoo/odoo/commit/beaa30a3d1843de43a45f419bfbc1bfa7613a920. Fields have been renamed according to the following mapping: residual_signed -> amount_residual_signed reference -> ref State 'open' does not exist anymore, use 'posted' and combine it with 'invoice_payment_state' instead. --- addons/account_payment/models/payment.py | 2 +- .../views/account_portal_templates.xml | 28 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/addons/account_payment/models/payment.py b/addons/account_payment/models/payment.py index 02d52d25eb3..8dd98f98285 100644 --- a/addons/account_payment/models/payment.py +++ b/addons/account_payment/models/payment.py @@ -20,7 +20,7 @@ class PaymentTransaction(models.Model): 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.residual_signed, + invoice.amount_residual_signed, invoice.currency_id.id, values=values, ) diff --git a/addons/account_payment/views/account_portal_templates.xml b/addons/account_payment/views/account_portal_templates.xml index bdc9c9da488..4f8c00964d6 100644 --- a/addons/account_payment/views/account_portal_templates.xml +++ b/addons/account_payment/views/account_portal_templates.xml @@ -7,7 +7,7 @@ - Pay Now @@ -16,16 +16,16 @@ - + Waiting for Payment - + Authorized - + Pending - + Paid @@ -36,7 +36,7 @@