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

Module: Test - Base Automation

Entity: test_base_automation.task

Compute Method: _compute_remaining_hours

Inputs Method Outputs
for task in self:
            if not task.allocated_hours:
                task.remaining_hours = 0.0
            else:
                task.remaining_hours = task.allocated_hours - task.effective_hours

Back to entity