From a0ec69e96456e9653e047f3299af8be4e313e069 Mon Sep 17 00:00:00 2001 From: Nikul Chaudhary Date: Thu, 18 Apr 2019 04:24:38 +0000 Subject: [PATCH] [FIX] Fixed code --- agreement_project/models/agreement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agreement_project/models/agreement.py b/agreement_project/models/agreement.py index 9c6311b3..a07d2fb0 100644 --- a/agreement_project/models/agreement.py +++ b/agreement_project/models/agreement.py @@ -14,5 +14,5 @@ class Agreement(models.Model): def _compute_task_count(self): for ag in self: count = self.env['project.task'].search_count( - [('agreement_id', 'in', self.ids)]) + [('agreement_id', '=', ag.id)]) ag.task_count = count