pycharm-odoo icon indicating copy to clipboard operation
pycharm-odoo copied to clipboard

Support http.Controller extension mechanism

Open jerzyk opened this issue 1 year ago • 2 comments

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

jerzyk avatar Sep 05 '23 07:09 jerzyk

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.

trinhanhngoc avatar Sep 05 '23 08:09 trinhanhngoc

you can extend CustomerPortal from sale instead of from portal 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 :)

jerzyk avatar Sep 05 '23 08:09 jerzyk