From cbbc90fc2ef2a1a7e104c466fffb33766cf20986 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 24 Jun 2016 10:52:43 +0200 Subject: [PATCH] [FIX] website_payment: access parent payment method On the other routes (e.g. /my/, /my/contract/) payment information on the parent contact are displayed but can not be access in the my payment route. You get in a unconsistant situation where you can access the contract of the company and its payment information but can not use this payment information. opw-681491, opw-681502 --- addons/website_payment/controllers/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/website_payment/controllers/main.py b/addons/website_payment/controllers/main.py index 800860a783b..ee18815bb15 100644 --- a/addons/website_payment/controllers/main.py +++ b/addons/website_payment/controllers/main.py @@ -10,6 +10,7 @@ class website_payment(http.Controller): acquirers = list(request.env['payment.acquirer'].search([('website_published', '=', True), ('registration_view_template_id', '!=', False)])) partner = request.env.user.partner_id payment_methods = partner.payment_method_ids + payment_methods |= partner.commercial_partner_id.sudo().payment_method_ids values = { 'pms': payment_methods, 'acquirers': acquirers