From c7d3dcb593776318442b2a6000cbcc3abbb07a6d Mon Sep 17 00:00:00 2001 From: "Laurent Stukkens (LTU)" Date: Wed, 15 Dec 2021 09:01:30 +0000 Subject: [PATCH] [FIX] hr_timesheet: correctly compute is_internal_project This commit fixes the way is_internal_project is computed. closes odoo/odoo#81463 X-original-commit: ea7d5451be3277b0a3ab779e05920ca5757a2a6e Signed-off-by: Xavier Signed-off-by: Laurent Stukkens (ltu) --- 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 2c149c44f17..89962337715 100644 --- a/addons/hr_timesheet/models/project.py +++ b/addons/hr_timesheet/models/project.py @@ -61,7 +61,7 @@ class Project(models.Model): @api.depends('company_id') def _compute_is_internal_project(self): for project in self: - project.is_internal_project = bool(project.company_id.internal_project_id) + project.is_internal_project = project == project.company_id.internal_project_id @api.model def _search_is_internal_project(self, operator, value):