diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-06-24 10:52:43 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-06-28 12:16:41 +0200 |
| commit | cbbc90fc2ef2a1a7e104c466fffb33766cf20986 (patch) | |
| tree | 37f44e757ab8cf70fdf1224b9733863bbc7279bc /addons/website_payment/controllers | |
| parent | cc4f8df99f59dd7abed935c5acf58331e952a1a0 (diff) | |
[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
Diffstat (limited to 'addons/website_payment/controllers')
| -rw-r--r-- | addons/website_payment/controllers/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
