mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
ADD security to project.task.line and show on website.
`website_project_task` module now includes optional template to display Todo List on the task view
This commit is contained in:
@@ -11,7 +11,11 @@ class ProjectTask(models.Model):
|
||||
def _compute_subtask_count(self):
|
||||
for task in self:
|
||||
task.subtask_count = self.search_count([('id', 'child_of', task.id), ('id', '!=', task.id)])
|
||||
task.subtask_count_done = self.search_count([('id', 'child_of', task.id), ('id', '!=', task.id), ('stage_id.fold', '=', True)])
|
||||
if task.subtask_count:
|
||||
task.subtask_count_done = self.search_count([('id', 'child_of', task.id), ('id', '!=', task.id),
|
||||
('stage_id.fold', '=', True)])
|
||||
else:
|
||||
task.subtask_count_done = 0
|
||||
|
||||
|
||||
class ProjectTaskLine(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user