Unresolve Reference to ignore speical fields
AdrianTeng opened this issue · comments
Thanks for the brilliant plugin!
Odoo has a bunch of special built in fields, namely, id
, create_date
, write_date
, create_uid
, and write_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 at OdooPyInspectionExtension.java
?)
Example:
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