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

Module: Employees Shifts

Entity: hr.shift.planning

Compute Method: _compute_dates

Inputs Method Outputs
for planning in self.filtered(lambda x: x.week_number and x.year):
            planning.start_date = datetime.fromisocalendar(
                planning.year, planning.week_number, 1
            )
            planning.end_date = datetime.fromisocalendar(
                planning.year, planning.week_number, 7
            )

Back to entity