[FIX]hr_employee_stats_sheet:fix timesheet_line_ids definition

This commit is contained in:
2025-12-22 16:31:33 +01:00
parent e1534c41d8
commit 01cf81e8bb
2 changed files with 3 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "hr_employee_stats_sheet", "name": "hr_employee_stats_sheet",
"version": "16.0.3.0.3", "version": "16.0.3.1.3",
"description": "Add global sheet for employee stats", "description": "Add global sheet for employee stats",
"summary": "Add global sheet for employee stats", "summary": "Add global sheet for employee stats",
"author": "Nicolas JEUDY", "author": "Nicolas JEUDY",

View File

@@ -18,11 +18,10 @@ class HrEmployeeStats(models.Model):
is_public_holiday = fields.Boolean("Public Holiday", compute="_compute_dayofweek") is_public_holiday = fields.Boolean("Public Holiday", compute="_compute_dayofweek")
employee_id = fields.Many2one("hr.employee", "Employee", required=True) employee_id = fields.Many2one("hr.employee", "Employee", required=True)
department_id = fields.Many2one("hr.department", "Department") department_id = fields.Many2one("hr.department", "Department")
timesheet_line_ids = fields.One2many( timesheet_line_ids = fields.Many2many(
"account.analytic.line", "account.analytic.line",
"employee_id",
"Timesheet lines",
compute="_compute_timesheet_line_ids", compute="_compute_timesheet_line_ids",
string="Timesheet lines",
) )
date = fields.Date("Date", required=True) date = fields.Date("Date", required=True)
company_id = fields.Many2one( company_id = fields.Many2one(