[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
This commit is contained in:
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user