From 4a6f5a726841ca4168913de3c5e1ecfc1f82eafb Mon Sep 17 00:00:00 2001 From: "Laurent Stukkens (LTU)" Date: Tue, 14 Dec 2021 14:28:12 +0000 Subject: [PATCH] [FIX] hr_timesheet: use correct field type for timesheet_count This commit fixes #80080 where a bad field type has been used. Fortunatelly the field is only used in conditions where it is checked as being Truthy. closes odoo/odoo#81419 Signed-off-by: Xavier --- addons/hr_timesheet/models/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet/models/project.py b/addons/hr_timesheet/models/project.py index c7de0f8482e..90725ed2854 100644 --- a/addons/hr_timesheet/models/project.py +++ b/addons/hr_timesheet/models/project.py @@ -38,7 +38,7 @@ class Project(models.Model): ) timesheet_ids = fields.One2many('account.analytic.line', 'project_id', 'Associated Timesheets') - timesheet_count = fields.Boolean(compute="_compute_timesheet_count") + timesheet_count = fields.Integer(compute="_compute_timesheet_count") timesheet_encode_uom_id = fields.Many2one('uom.uom', related='company_id.timesheet_encode_uom_id') total_timesheet_time = fields.Integer( compute='_compute_total_timesheet_time',