mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] Fixed code
This commit is contained in:
committed by
hkapatel
parent
b064a2430f
commit
50f3e70946
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user