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

Module: Timesheet when on Time Off

Entity: project.task

Compute Method: _compute_is_timeoff_task

Inputs Method Outputs
timeoff_tasks = self.filtered(lambda task: task.leave_types_count or task.company_id.leave_timesheet_task_id == task)
timeoff_tasks.is_timeoff_task = True
(self - timeoff_tasks).is_timeoff_task = False

Back to entity