in my model file I have an import statement that import models fields api from odoo but in pycharm it shows me an error, I have found some indications that suggest to add configuration for odoo to be set as a source in the project but it keep shows me an error
from odoo import models, fields, api # odoo models, fields, api are underlined red
class TodoTask(models.Model):
_name= 'todo.task'
_name= fields.Char('description', required=True)
@api.model
def do_clear_done(self):
// here is my coe
See: https://www.youtube.com/watch?v=p7SJW36lqVE
Reference: http://learnopenerp.blogspot.com/2019/10/configure-pycharm-with-odoo.html