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_ask_number_of_packages

Inputs Method Outputs
  • carrier_id
  • package_ids
  • picking_type_id
  • picking_type_id.force_set_number_of_packages
"""To Know if is needed raise wizard to ask user by package number"""
for picking in self:
            picking.ask_number_of_packages = bool(
                picking.carrier_id
                and not picking.package_ids
                or picking.picking_type_id.force_set_number_of_packages
            )

Back to entity