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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |