summaryrefslogtreecommitdiff
path: root/addons/payment/controllers
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-07-16 08:51:00 +0200
committerMartin Trigaux <mat@odoo.com>2019-07-16 09:22:49 +0200
commit1bd434da34731b5467cc17fdffe6f3ed5dfea2d4 (patch)
treefbdc86c6a19502e3e38d21132c65cf21e20354f4 /addons/payment/controllers
parentc8d10d228e722e3476e845c58e966ff96cd9f5d7 (diff)
parentd8072d54acf81f9482145994f6453dd660580be0 (diff)
[MERGE] Forward port of saas-11.3 to 12.0 up to d8072d54acf8
Diffstat (limited to 'addons/payment/controllers')
-rw-r--r--addons/payment/controllers/portal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment/controllers/portal.py b/addons/payment/controllers/portal.py
index 8b4585b9393..ebe7aef0cc5 100644
--- a/addons/payment/controllers/portal.py
+++ b/addons/payment/controllers/portal.py
@@ -272,7 +272,7 @@ class WebsitePayment(http.Controller):
tx_id = int(kw.get('tx_id', 0))
if tx_id:
tx = request.env['payment.transaction'].browse(tx_id)
- if tx.state == 'done':
+ if tx.state in ['done', 'authorized']:
status = 'success'
message = tx.acquirer_id.done_msg
elif tx.state == 'pending':