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

Compute Method: _compute_shipping_volume

View 19.0 View 20.0
Inputs Method Outputs
  • product_uom
  • quantity
  • product_id
  • product_id.uom_id
  • product_id.volume
  • uom_id
for picking in self:
            volume = 0
            for move in picking.move_ids:
-                 volume += move.product_uom._compute_quantity(move.quantity, move.product_id.uom_id) * move.product_id.volume
+                 volume += move.uom_id._compute_quantity(move.quantity, move.product_id.uom_id) * move.product_id.volume
            picking.shipping_volume = volume
  • shipping_volume

Back to entity