Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Project

Entity: project.task

Compute Method: _compute_display_parent_task_button

Inputs Method Outputs
accessible_parent_tasks = self.parent_id.with_user(self.env.user)._filter_access_rules('read')
for task in self:
            task.display_parent_task_button = task.parent_id in accessible_parent_tasks

Back to entity