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

Module: Project timeline

Entity: project.task

Compute Method: _compute_planned_date_start

Inputs Method Outputs
"""Put the assignation date as the planned start if not other value is
        previously set, avoiding to trigger the constraint.
        """
for record in self.filtered(
            lambda x: not x.planned_date_start and x.date_assign
        ):
            if (
                not record.planned_date_end
                or record.planned_date_end >= record.date_assign
            ):
                record.planned_date_start = record.date_assign

Back to entity