odoo-ide / vscode-odoo

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

[Odoo 16] Base module does not import correctly #71

Closed agustin-eticco closed 1 month ago

agustin-eticco commented 3 months ago

The rest of the Odoo addons are importing correctly, but the fields and functions of the base module, e.g. res.partner, are not importing correctly.

I only get my custom fields or functions loaded into res.partner. I have imported in my workspace the complete Odoo 16 project and I don't see any loading errors in the extension log. I have tried reinstalling Python and the extension and that doesn't work either. Any idea what's going on?

By the way, the Python module needed for the extension installs Pylance, and with this extension enabled it does not warn me correctly about errors.

Thanks for your work, it's helping me a lot with my Odoo development!

image image

trinhanhngoc commented 3 months ago

Hello @agustin-eticco ,

Have you added the Odoo source code (https://github.com/odoo/odoo/tree/16.0) to your VSCode workspace yet?

agustin-eticco commented 3 months ago

Yes, i have.

image image image

trinhanhngoc commented 3 months ago

@agustin-eticco , I cannot reproduce the problem. Does the problem also occur with files in the Odoo source code or just with files in your custom addons?