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

Module: Delivery Total Weight From Packaging

Entity: stock.quant.package

Compute Method: _compute_shipping_weight

Inputs Method Outputs
for package in self:
            # When you ship the parcel, the weight should not be erased and
            # remain the one that was encoded during the packing step.
            package.shipping_weight = (
                package.shipping_weight
                or package._get_weight_from_packaging(
                    self.env.context.get("picking_id")
                )
            )

Back to entity