[IMP] hr_contract: properly define first_contract_date

Removing the `related` makes it properly defined on the SQL view and
allows the field to be searched.

closes odoo/odoo#87885

Taskid: 2781421
Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Kevin Baptiste
2022-04-04 13:43:52 +02:00
parent d949569e87
commit 5ff6b41f67
@@ -7,4 +7,4 @@ from odoo import fields, models
class HrEmployeePublic(models.Model):
_inherit = "hr.employee.public"
first_contract_date = fields.Date(related='employee_id.first_contract_date', groups="base.group_user")
first_contract_date = fields.Date(readonly=True, groups="base.group_user")