Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Shopfloor
Entity: stock.picking
Compute Method: _compute_picking_info
| Inputs | Method | Outputs |
|---|---|---|
|
- for item in self: - item.update( - { - "total_weight": item._calc_weight(), - "move_line_count": len(item.move_line_ids), - "package_level_count": len(item.package_level_ids), - # NOTE: not based on 'move_line_ids_without_package' field - # on purpose as it also takes into account the - # 'Move entire packs' option from the picking type. - "bulk_line_count": len( - item.move_line_ids.filtered(lambda ml: not ml.package_level_id) - ), - } - ) |
|
