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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user