Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

Commit 1483eb0

Browse files
committed
[14.0][FIX] introduce employee_company_id field in hr.leave
1 parent 9d0af2a commit 1483eb0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

project_forecast_line/models/hr_leave.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ class HrLeave(models.Model):
1111
_name = "hr.leave"
1212
_inherit = ["hr.leave", "forecast.line.mixin"]
1313

14+
employee_company_id = fields.Many2one(
15+
related="employee_id.company_id", readonly=True, store=True
16+
)
17+
1418
@api.model_create_multi
1519
def create(self, vals_list):
1620
leaves = super().create(vals_list)

0 commit comments

Comments
 (0)