[FIX] P3: incorrect dependencies

website_sale_digital overrides a method defined on
website_portal_sale, but only depends on website_portal and extends
the base controller from website_portal. Depending on the (relative)
order in which the system decides to load website_sale_digital and
website_portal_sale we can end up with the former's template but the
latter's methods (without the proper context data). Which ends up
commonly crashing in P35.

Fix dependencies and controller inheritance.
This commit is contained in:
Xavier Morel
2017-06-12 11:04:23 +02:00
parent ea21c7a8ee
commit 4957296f1d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ Sell digital product using attachments to virtual products
""",
'depends': [
'document',
'website_sale',
'website_portal_sale',
],
'installable': True,
'data': [
@@ -7,7 +7,7 @@ from werkzeug.utils import redirect
from odoo import http
from odoo.http import request
from odoo.addons.website_portal.controllers.main import website_account
from odoo.addons.website_portal_sale.controllers.main import website_account
from odoo.addons.website_sale.controllers.main import WebsiteSale
class WebsiteSaleDigitalConfirmation(WebsiteSale):