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

Module: Delivery Package Number

Entity: stock.picking

Compute Method: _compute_number_of_packages

Inputs Method Outputs
  • move_line_ids
  • move_line_ids.result_package_id
for picking in self:
            packages = picking.move_line_ids.result_package_id
            if packages:
                picking.number_of_packages = len(packages)

Back to entity