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

Module: Fieldservice Availability

Entity: fsm.delivery.time.range

Compute Method: _compute_name

Inputs Method Outputs
for record in self:
            start = "{:02d}:{:02d}".format(*divmod(int(record.start_time * 60), 60))
            end = "{:02d}:{:02d}".format(*divmod(int(record.end_time * 60), 60))
            record.name = f"{start} - {end}"

Back to entity