pycharm-odoo
pycharm-odoo copied to clipboard
PyCharm plugin for Odoo
https://github.com/odoo/odoo/blob/6db2847b476a21d6a96baddecb8231e47157ae0e/addons/product/models/product_product.py#L286 Currently, the plugin always infers type of `Id` as `int`, `Char` as `str`,... but in reality `Id` can be `int | NewId | False`, `Char` can be `str |...
https://github.com/odoo/odoo/blob/4883ae872c57f8c8db60ea5f9f4fd9df8bba4948/odoo/fields.py#L1118 In the above code sample, the instruction `self.type == 'many2one'` in the control flow of the expression `self.delegate` has enough information to infer the type of `self` in `self.delegate`.
https://github.com/odoo/odoo/blob/ad8815510bc2f809f7dcc36594e10e0d849553b2/odoo/modules/loading.py#L325 Odoo defines the custom logging method for runbot at: https://github.com/odoo/odoo/blob/ad8815510bc2f809f7dcc36594e10e0d849553b2/odoo/netsvc.py#L275
https://github.com/odoo/odoo/blob/44f5c89a48328995fb9767012c3c5b423db6f917/odoo/modules/registry.py#L41 - Infer type of `cls` as `type[C]` instead `C`. - Suppress false inspection for name of first parameter.
https://github.com/odoo/odoo/blob/909b9b46104e9d3182f7c461c611bf6491b5d181/addons/mrp/report/mrp_report_bom_structure.xml#L43 To implemented: - Syntax highlight - Eval context provider
PyCharm raises StackOverflowError when opening file https://github.com/odoo/odoo/blob/15.0/addons/web/static/src/core/errors/error_handlers.js The error also occurs with PyCharm without the Odoo plugin. I have reported the issue to JetBrains but no progress so far https://youtrack.jetbrains.com/issue/WEB-55347/StackOverflowError-on-types-resolving...
Provide icon preview in: - Hover tooltip - Code completion item
Same as #141, but for text in `add`.
These references from po files are not really helpful.
https://github.com/odoo/odoo/blob/15.0/addons/website/tests/test_views.py Need to suppress unresolved reference errors for views created in tests.