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: _cal_weight

Inputs Method Outputs
  • move_ids
for picking in self:
            picking.weight = sum(move.weight for move in picking.move_ids if move.state != 'cancel')

Back to entity