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 19.0 View 20.0
Inputs Method Outputs
  • product_id
  • product_uom_id
  • inventory_quantity
  • inventory_diff_quantity
  • quantity
  • inventory_quantity_set
  • uom_id
self.is_outdated = False
for quant in self:
-             if quant.product_id and quant.product_uom_id.compare(quant.inventory_quantity - quant.inventory_diff_quantity, quant.quantity) and quant.inventory_quantity_set:
+             if quant.product_id and quant.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