[FIX] Fixed code

This commit is contained in:
Nikul Chaudhary
2019-04-18 04:24:38 +00:00
parent 8b22712790
commit a0ec69e964

View File

@@ -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