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

Module: DDMRP Adjustment

Entity: ddmrp.adjustment

Compute Method: _compute_dates

Inputs Method Outputs
for rec in self:
            if rec.date_range_id:
                rec.date_start = rec.date_range_id.date_start
                rec.date_end = rec.date_range_id.date_end
            else:
                rec.date_start = rec.manual_date_start
                rec.date_end = rec.manual_date_end

Back to entity