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

Module: Product Packaging Dimension

Entity: product.packaging

Compute Method: _compute_volume

View 18.0
Inputs Method Outputs
  • packaging_length
  • height
  • width
  • length_uom_id
  • volume_uom_id
- for packaging in self:
-             packaging.volume = packaging._calculate_volume(
-                 packaging.packaging_length,
-                 packaging.height,
-                 packaging.width,
-                 packaging.length_uom_id,
-                 packaging.volume_uom_id,
-             )
  • volume

Back to entity