odoo-ide / pycharm-odoo-old

PyCharm plugin for Odoo

Home Page:https://plugins.jetbrains.com/plugin/13499-odoo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't resolve some model names

6uipoeib opened this issue · comments

Environment:

Odoo 13 with odoo-stub installed
I have tried "Clear Cache and Restart" but still no luck.

Issue:

Some model names can be resolved but some cannot.

For example, In my project:

questionnaire_id = fields.Many2one('survey.survey', string='Registration Questionnaire')
gives me red lines under 'survey.survey'

however another field
welcome_email_template = fields.Many2one('mail.template')
is correct.

both 'survey.survey' and 'mail.template' are odoo models under odoo/odoo/addons. And there are no runtime errors for my environment.

Did you include the module survey in the manifest ?

Thank you very much. I missed that. After adding dependency it's good now.