[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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user