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 Show Linked

Entity: stock.picking

Compute Method: _compute_picking_count

Inputs Method Outputs
for record in self:
            origin_pickings = record.mapped("move_ids.move_orig_ids.picking_id")
            record.update(
                {
                    "origin_picking_count": len(origin_pickings),
                }
            )

Back to entity