Browse Source

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

[FIX] agreement_project
pull/314/head
Maxime Chambreuil 6 years ago
committed by GitHub
parent
commit
12b3302751
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      agreement_project/models/agreement.py

2
agreement_project/models/agreement.py

@ -14,5 +14,5 @@ class Agreement(models.Model):
def _compute_task_count(self): def _compute_task_count(self):
for ag in self: for ag in self:
count = self.env['project.task'].search_count( count = self.env['project.task'].search_count(
[('agreement_id', 'in', self.ids)])
[('agreement_id', '=', ag.id)])
ag.task_count = count ag.task_count = count
Loading…
Cancel
Save