summaryrefslogtreecommitdiff
path: root/addons/payment
diff options
context:
space:
mode:
authorLaurent Smet <las@odoo.com>2020-10-20 06:39:55 +0000
committerLaurent Smet <las@odoo.com>2020-10-28 09:27:27 +0000
commit7a1622eb301577eaaf626f16d77f5a58d63557c2 (patch)
tree01bb66a28eb4160a754f9d1f3db108eb2cc89e48 /addons/payment
parent0ad8979cb345805b7b1bdc330621b42e1d625593 (diff)
[ADD] payment_fix_register_token: Fix account.payment.register wizard with 'payment' module
The payment token is no longer available when registering a payment for invoices. This new module aims to restore this lost feature during the payment-pocalyse in stable version. Of course, this module must be merged in existing modules during the forwart-port in master. closes odoo/odoo#60289 Task: 2352628 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/payment')
-rw-r--r--addons/payment/models/account_payment.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/payment/models/account_payment.py b/addons/payment/models/account_payment.py
index 14a4bc054b2..0a41747887e 100644
--- a/addons/payment/models/account_payment.py
+++ b/addons/payment/models/account_payment.py
@@ -114,6 +114,7 @@ class AccountPayment(models.Model):
transactions.s2s_do_transaction()
# Post payments for issued transactions.
+ transactions._post_process_after_done()
payments_trans_done = payments_need_trans.filtered(lambda pay: pay.payment_transaction_id.state == 'done')
super(AccountPayment, payments_trans_done).action_post()
payments_trans_not_done = payments_need_trans.filtered(lambda pay: pay.payment_transaction_id.state != 'done')