summaryrefslogtreecommitdiff
path: root/addons/project/models/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/project/models/project.py')
-rw-r--r--addons/project/models/project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project/models/project.py b/addons/project/models/project.py
index a8725944b39..00ccd6dc760 100644
--- a/addons/project/models/project.py
+++ b/addons/project/models/project.py
@@ -1067,7 +1067,7 @@ class Task(models.Model):
# If depth == 3, return children to third generation
# If depth <= 0, return all children without depth limit
def _get_all_subtasks(self, depth=0):
- children = self.mapped('child_ids')
+ children = self.mapped('child_ids').filtered(lambda children: children.active)
if not children:
return self.env['project.task']
if depth == 1: