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

Module: MIS Builder

Entity: mis.report.instance

Compute Method: _compute_pivot_date

Inputs Method Outputs
for record in self:
            if self.env.context.get("mis_pivot_date"):
                record.pivot_date = self.env.context.get("mis_pivot_date")
            elif record.date:
                record.pivot_date = record.date
            else:
                record.pivot_date = fields.Date.context_today(record)

Back to entity