odoo-ide / vscode-odoo

Visual Studio Code extension for Odoo
https://marketplace.visualstudio.com/items?itemName=trinhanhngoc.vscode-odoo
46 stars 3 forks source link

No code completion for `http.request.redirect`? #32

Closed AaronBeaudoin closed 1 year ago

AaronBeaudoin commented 1 year ago

It looks like in Odoo 16.0 the http.local_redirect function no longer exists and there is now a http.request.redirect function. But the new function doesn't show up in code completion. What version of Odoo is code completion targeting, and can I change it?

trinhanhngoc commented 1 year ago

Hi @AaronBeaudoin , The Odoo extension automatically determines Odoo version to provide appropriate completion. I just checked again, and everything is working fine for me.

image
AaronBeaudoin commented 1 year ago

How does it determine the Odoo version? I am using the Odoo 16.0 source code just like in your screenshot yet the redirect function is not detected:

image

AaronBeaudoin commented 1 year ago

Nevermind! I previously had the Odoo 13.0 source code and I replaced with the Odoo 16.0 source code, and it looks like I just needed to reload VS Code in order for the extension to re-initialize and pick up the new source code.