[FIX]hr_employee_stats_sheet:fix timesheet_line_ids definition
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hr_employee_stats_sheet",
|
||||
"version": "16.0.3.0.3",
|
||||
"version": "16.0.3.1.3",
|
||||
"description": "Add global sheet for employee stats",
|
||||
"summary": "Add global sheet for employee stats",
|
||||
"author": "Nicolas JEUDY",
|
||||
|
||||
@@ -18,11 +18,10 @@ class HrEmployeeStats(models.Model):
|
||||
is_public_holiday = fields.Boolean("Public Holiday", compute="_compute_dayofweek")
|
||||
employee_id = fields.Many2one("hr.employee", "Employee", required=True)
|
||||
department_id = fields.Many2one("hr.department", "Department")
|
||||
timesheet_line_ids = fields.One2many(
|
||||
timesheet_line_ids = fields.Many2many(
|
||||
"account.analytic.line",
|
||||
"employee_id",
|
||||
"Timesheet lines",
|
||||
compute="_compute_timesheet_line_ids",
|
||||
string="Timesheet lines",
|
||||
)
|
||||
date = fields.Date("Date", required=True)
|
||||
company_id = fields.Many2one(
|
||||
|
||||
Reference in New Issue
Block a user