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

Module: Inventory

Entity: stock.quant

Compute Method: _compute_is_outdated

View 17.0 View 19.0
Inputs Method Outputs
  • product_id
  • inventory_quantity
  • inventory_diff_quantity
  • quantity
  • product_uom_id
  • product_uom_id.rounding
  • inventory_quantity_set
self.is_outdated = False
for quant in self:
-             if quant.product_id and float_compare(quant.inventory_quantity - quant.inventory_diff_quantity, quant.quantity, precision_rounding=quant.product_uom_id.rounding) and quant.inventory_quantity_set:
+             if quant.product_id and quant.product_uom_id.compare(quant.inventory_quantity - quant.inventory_diff_quantity, quant.quantity) and quant.inventory_quantity_set:
                quant.is_outdated = True
  • is_outdated

Back to entity