Open jerzyk opened 10 months ago
Hi @jerzyk , Thank you for the report. I didn't know that http.Controller
has that extension mechanism. I will add support for that feature soon. While waiting for the improvement, you can extend CustomerPortal
from sale
instead of from portal
as a workaround.
you can extend
CustomerPortal
fromsale
instead of fromportal
as a workaround.
I was thinking about adding this to the original description - but it wasn't relevant to the base issue, so decided not to, but thanks anyway :)
situation:
extending/overriding class
CustomerPortal
fromodoo.addons.portal.controllers.portal
and extendig method_prepare_sale_portal_rendering_values
which is defined in and override by itself insale.controllers.portal
for
super()._prepare_sale_portal_rendering_values(*args, **kw)
statement - it generates a false positive unresolved referenceimo it shouldn't - sale is in module dependencies and odoo is resolving this code properly