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

Module: Stock Demand Estimate Matrix

Entity: date.range

Compute Method: _compute_days

Inputs Method Outputs
  • date_end
  • date_start
for rec in self.filtered(lambda x: x.date_start and x.date_end):
            rec.days = abs((rec.date_end - rec.date_start).days) + 1

Back to entity