hi all , iam trying to add a extra field in hr_emp module , but when i add the server is not starting it shows me this error
File "/odoo/odoo-server/odoo/fields.py", line 494, in _setup_related_full
raise TypeError("Type of related field %s is inconsistent with %s" % (self, field))
TypeError: Type of related field hr.employee.employee_id is inconsistent with resource.resource.name - - -
emp.y:
employee_id = fields.Integer(string="Employee Id",related='resource_id.name', store=True, readonly=False, tracking=True )
emp_views.py:
<group>
<field name="employee_id" string="Employee Id" required="True"/>
</group>
also when i try with
employee_id = fields.Char(string="Employee Id", required = True) , it throws me an error than employee id didnt exit in form view
SOMEONE SOLVE THIS