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

Module: Delivery - Stock

Entity: stock.picking

Compute Method: _compute_shipping_weight

View 17.0
Inputs Method Outputs
  • weight_bulk
  • id
  • package_ids
- for picking in self:
-             # if shipping weight is not assigned => default to calculated product weight
-             picking.shipping_weight = (
-                 picking.weight_bulk +
-                 sum(pack.shipping_weight or pack.with_context(picking_id=picking.id).weight for pack in picking.package_ids.sudo())
-             )
  • shipping_weight

Back to entity