Model Code:
from odoo import models, fields, api
class ResUsersInherit(models.Model):
_inherit = 'res.users'
_description = 'Inherited res_users'
supervisor = fields.Many2one('res.users', string='Supervisor',
domain=lambda self: [('id', '!=', self.env.user.id)])
i have added this inherit_user.py file in models/__init__.py
when restart odoo17 service, got below error in odoo.log
ERROR: column res_users.supervisor does not exist
LINE 1: ...res_users"."write_uid", "res_users"."write_date", "res_users...
is there any change in ver. 17.0 to inherit or error is in my Model above?
please help.
regards