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

Module: Product Dimension

Entity: product.product

Compute Method: _compute_volume

Inputs Method Outputs
template_obj = self.env["product.template"]
for product in self:
            product.volume = template_obj._calc_volume(
                product.product_length,
                product.product_height,
                product.product_width,
                product.dimensional_uom_id,
            )

Back to entity