From d2daaf95b4affd6f79c67deab8bdee08de414dcd Mon Sep 17 00:00:00 2001 From: Manisha Tulsiyani Date: Thu, 12 May 2022 12:58:11 +0000 Subject: [PATCH] [FIX] project: fix the traceback when clicking on blocking stat button Currently, clicking on the blocking stat button throws an error when there is more the 1 task in blocking stat. So this commit, fixes the issue by removing the extra comma so that clicking on blocking stat button doesn't throws an error. task-2834743 closes odoo/odoo#92257 X-original-commit: cd7b7b02523e0982366f4ca60b6df2448d7e9cb5 Signed-off-by: Laurent Stukkens (ltu) --- addons/project/models/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/models/project.py b/addons/project/models/project.py index b0fea1b5869..efe4a6f313b 100644 --- a/addons/project/models/project.py +++ b/addons/project/models/project.py @@ -2337,7 +2337,7 @@ class Task(models.Model): action['res_id'] = self.dependent_ids.id action['views'] = [(False, 'form')] else: - action['domain'] = [('depend_on_ids', '=', self.id)], + action['domain'] = [('depend_on_ids', '=', self.id)] action['name'] = _('Dependent Tasks') action['view_mode'] = 'tree,form,kanban,calendar,pivot,graph,activity' return action