[FIX] website_sale: only display payment method from the same company as the order

This commit is contained in:
Denis Ledoux 2014-09-18 10:50:37 +02:00
parent 2aaad0796c
commit 8d773dcd23
1 changed files with 1 additions and 1 deletions

View File

@ -617,7 +617,7 @@ class website_sale(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)], context=context)
values['acquirers'] = list(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']: