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

Inputs Method Outputs
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,
            )

Back to entity