Merge pull request #313 from nikul-serpentcs/12-fix-agreement_project

[FIX] agreement_project
This commit is contained in:
Maxime Chambreuil
2019-04-18 08:46:35 -05:00
committed by GitHub

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