summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
Diffstat (limited to 'addons')
-rw-r--r--addons/payment/controllers/portal.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/payment/controllers/portal.py b/addons/payment/controllers/portal.py
index 2fc980147f1..cefc8ad6d5e 100644
--- a/addons/payment/controllers/portal.py
+++ b/addons/payment/controllers/portal.py
@@ -199,6 +199,8 @@ class WebsitePayment(http.Controller):
acquirers = None
if acquirer_id:
acquirers = env['payment.acquirer'].browse(int(acquirer_id))
+ if order_id:
+ acquirers = env['payment.acquirer'].search([('state', 'in', ['enabled', 'test']), ('company_id', '=', order.company_id.id)])
if not acquirers:
acquirers = env['payment.acquirer'].search([('state', 'in', ['enabled', 'test']), ('company_id', '=', user.company_id.id)])