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

Module: Stock Quant Package Dimension

Entity: stock.quant.package

Compute Method: _compute_volume

View 18.0
Inputs Method Outputs
  • pack_length
  • height
  • width
  • length_uom_id
  • volume_uom_id
+ Packaging = self.env["product.packaging"]
+ for pack in self:
+             pack.volume = Packaging._calculate_volume(
+                 pack.pack_length,
+                 pack.height,
+                 pack.width,
+                 pack.length_uom_id,
+                 pack.volume_uom_id,
+             )
  • volume

Back to entity