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

Module: Stock Picking Package Number

Entity: stock.picking

Compute Method: _compute_number_of_packages

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

Back to entity