Browse Source

[FIX] Fixed code

pull/313/head
Nikul Chaudhary 6 years ago
parent
commit
a0ec69e964
  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):
for ag in self:
count = self.env['project.task'].search_count(
[('agreement_id', 'in', self.ids)])
[('agreement_id', '=', ag.id)])
ag.task_count = count
Loading…
Cancel
Save