Closed Burnaviour closed 10 months ago
Hello @Burnaviour , I need more information to be able to support:
thank you for your response here are the details my odoo extension version is v0.6.4 and vs code version 1.81
@Burnaviour , You can follow these steps:
all.users
model is a dependency of the module containing the warning (directly or indirectly through depends
in manifest).custom_addons
folder is a valid addons path. You need to add the custom_addons
folder to the extra paths setting as documented at https://microsoft.github.io/pyright/#/import-resolution.as per my module all.users is defined and working its just the pyright which is thwing waring and the odoo extension which is unable to detect all my custom modules models. In addition before posting the issue i tried this 2nd step you mentioned there are a lot of options option the told I have defined stub path in my workspace here is my setting.json "python.analysis.stubPath": "/opt/odoo16/custom_addons",
also tried these setting I have found on internet "python.autoComplete.extraPaths": [ "${workspaceRoot}/addons", "${workspaceRoot}/odoo/addons", "${workspaceRoot}/custom_addons" ], "python.analysis.typeshedPaths": [ "${workspaceRoot}/custom_addons" ],
Thank you for your help i have fixed the issue
custom addons are not detected in vs code using odoo extension its auto-suggesting odoo addons but not suggest custom addons models.I have attached pyright warning.![image](https://github.com/odoo-ide/vscode-odoo/assets/58103972/12dbec8c-0196-49d0-9bdd-093f2a048969)