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.move

Compute Method: _compute_product_qty

View 18.0 View 20.0
Inputs Method Outputs
  • product_uom
  • product_uom_qty
  • product_id
  • product_id.uom_id
  • uom_id
for move in self:
-             move.product_qty = move.product_uom._compute_quantity(
+             move.product_qty = move.uom_id._compute_quantity(
                move.product_uom_qty, move.product_id.uom_id, rounding_method='HALF-UP')
  • product_qty

Back to entity