From 2b762083a35b7a8901fdd8339cd17989a19a168a Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Thu, 13 Mar 2014 09:51:07 +0100 Subject: [PATCH] [FIX] website_sale: only display payment acquirers of the company of the quotation, or payment acquirers not linked to any company bzr revid: dle@openerp.com-20140313085107-ie4ptew82p4rq9cy --- addons/website_sale/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale/controllers/main.py b/addons/website_sale/controllers/main.py index eaca3608aa7..3aaabb596f1 100644 --- a/addons/website_sale/controllers/main.py +++ b/addons/website_sale/controllers/main.py @@ -603,7 +603,7 @@ class Ecommerce(http.Controller): if tx: acquirer_ids = [tx.acquirer_id.id] else: - acquirer_ids = payment_obj.search(cr, SUPERUSER_ID, [('website_published', '=', True)], context=context) + acquirer_ids = payment_obj.search(cr, SUPERUSER_ID, [('website_published', '=', True), '|', ('company_id', '=', order.company_id.id), ('company_id', '=', False)], context=context) values['acquirers'] = payment_obj.browse(cr, uid, acquirer_ids, context=context) render_ctx = dict(context, submit_class='btn btn-primary', submit_txt='Pay Now') for acquirer in values['acquirers']: