Closed AdrianTeng closed 3 years ago
Hi @AdrianTeng . You can use https://github.com/trinhanhngoc/odoo-stubs to help the plugin recognize these special fields.
Works like magic! Thanks for the help!
For future reference -- just download the stub repo and import it to your PyCharm project
Thanks for the brilliant plugin!
Odoo has a bunch of special built in fields, namely,
id
,create_date
,write_date
,create_uid
, andwrite_uid
, that would appear on every model. As they are not defined in the usual manner, usage of them in XML are currently highlighted as unresolved reference. Would be nice if the plugin could recognise these sepcial fields (I'm guessing adding this atOdooPyInspectionExtension.java
?)Example: