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

Module: Purchase Alternative Stock

Entity: purchase.order

Compute Method: _compute_on_time_rate_perc

Inputs Method Outputs
  • on_time_rate
for po in self:
            if po.on_time_rate >= 0:
                po.on_time_rate_perc = po.on_time_rate / 100
            else:
                po.on_time_rate_perc = -1

Back to entity