pycharm-odoo
pycharm-odoo copied to clipboard
Support http.Controller extension mechanism
situation:
extending/overriding class CustomerPortal
from odoo.addons.portal.controllers.portal
and extendig method _prepare_sale_portal_rendering_values
which is defined in and override by itself in sale.controllers.portal
for super()._prepare_sale_portal_rendering_values(*args, **kw)
statement - it generates a false positive unresolved reference
imo it shouldn't - sale is in module dependencies and odoo is resolving this code properly
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 :)