[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user