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

Module: DDMRP

Entity: stock.buffer.profile

Compute Method: _compute_name

Inputs Method Outputs
"""Get the right summary for this job."""
for rec in self:
            name = "{} {}, {}({}), {}({})".format(
                rec.replenish_method,
                rec.item_type,
                rec.lead_time_id.name,
                rec.lead_time_id.factor,
                rec.variability_id.name,
                rec.variability_id.factor,
            )
            if rec.distributed_reschedule_max_proc_time > 0.0:
                name += f", {rec.distributed_reschedule_max_proc_time}min"
            rec.name = name

Back to entity