-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unresolved ORM module members #95
Comments
P.S.: Sorry I should add: I'm using the VSCode fork Cursor, and while Pyright itself is disabled, there is a "Cursor Pyright": However, I do have |
Hello @dannyadair , I think the errors related to |
Thank you @trinhanhngoc Installed modules:
This is what I have in Output for Odoo IDE:
|
Yes, Odoo IDE is built on the top of Pyright. You can create issues for Odoo: https://github.com/odoo/odoo/issues |
Ok thank you. I'll close this issue now. I was just wondering about the warning because the import is not a real error, and ContextType etc. are defined in odoo.api just fine (though not listed in |
Sorry, that's my wrong. The import errors caused by missing module members in https://github.com/odoo-ide/odoo-stubs. I will update odoo-stubs to fix it. Thanks for the report. |
Everything seems to be working fine (thank you!) except for this Pyright complaint:
When I "Go to Definition" you can see SENTINEL is very much an attribute, but it was imported from tools.misc:
A few lines down in fields.py the same issue BUT not for NewId:
Even though all of them are defined on the top level of api.py:
Maybe also worth noting that none of them are in
__all__
:What am I doing wrong, what config am I missing?
Thank you for your help!
The text was updated successfully, but these errors were encountered: