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

Module: Field Service Route

Entity: fsm.route.dayroute

Compute Method: _compute_date_start_planned

Inputs Method Outputs
for rec in self:
            if not rec.date:
                rec.date_start_planned = None
                continue

            # TODO: Use the worker timezone and working schedule
            rec.date_start_planned = datetime.combine(
                rec.date, datetime.strptime("8:00:00", "%H:%M:%S").time()
            )

Back to entity