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

Module: Task Logs

Entity: project.task

Compute Method: _compute_allow_timesheets

View 19.0 View 20.0
Inputs Method Outputs
  • project_id
  • project_id.allow_timesheets
  • is_template
for task in self:
-             task.allow_timesheets = task.project_id.allow_timesheets
+             task.allow_timesheets = task.project_id.allow_timesheets if task.project_id else task.is_template
  • allow_timesheets

Back to entity