Skip to content

Commit

Permalink
[14.0][FIX] introduce employee_company_id field in hr.leave
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsirintanis committed Jul 27, 2023
1 parent 9d0af2a commit 1483eb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions project_forecast_line/models/hr_leave.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ class HrLeave(models.Model):
_name = "hr.leave"
_inherit = ["hr.leave", "forecast.line.mixin"]

employee_company_id = fields.Many2one(
related="employee_id.company_id", readonly=True, store=True
)

@api.model_create_multi
def create(self, vals_list):
leaves = super().create(vals_list)
Expand Down

0 comments on commit 1483eb0

Please sign in to comment.