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

Module: Maintenance Timesheets

Entity: maintenance.request

Compute Method: _compute_timesheet_total_hours

Inputs Method Outputs
for request in self:
            request.timesheet_total_hours = sum(
                request.timesheet_ids.mapped("unit_amount")
            )

Back to entity