From 4cc85168403971cb439fb0168582bb0408f4e4c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 26 Oct 2017 13:35:25 +0200 Subject: [PATCH] [FIX] account_payment: fix class inheritance Inherit from account portal class and not the basic customer portal. --- addons/account_payment/controllers/portal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account_payment/controllers/portal.py b/addons/account_payment/controllers/portal.py index 3f3c804e607..a2247288fdb 100644 --- a/addons/account_payment/controllers/portal.py +++ b/addons/account_payment/controllers/portal.py @@ -1,13 +1,13 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -from odoo.addons.account.controllers.portal import CustomerPortal +from odoo.addons.account.controllers.portal import PortalAccount from odoo.http import request -class CustomerPortal(CustomerPortal): +class PortalAccount(PortalAccount): def _invoice_get_page_view_values(self, invoice, access_token, **kwargs): - values = super(CustomerPortal, self)._invoice_get_page_view_values(invoice, access_token, **kwargs) + values = super(PortalAccount, self)._invoice_get_page_view_values(invoice, access_token, **kwargs) values.update(request.env['payment.acquirer']._get_available_payment_input(invoice.partner_id, invoice.company_id)) return values