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

View 17.0 View 20.0
Inputs Method Outputs
  • parent_id
- accessible_parent_tasks = self.parent_id.with_user(self.env.user)._filter_access_rules('read')
+ accessible_parent_tasks = self.parent_id.with_user(self.env.user)._filtered_access('read')
for task in self:
            task.display_parent_task_button = task.parent_id in accessible_parent_tasks
  • display_parent_task_button

Back to entity