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

Module: Purchase All Shipments

Entity: purchase.order

Compute Method: _compute_all_pickings

Inputs Method Outputs
for rec in self:
            groups = rec.mapped("picking_ids.group_id")
            all_picking_ids = self.env["stock.picking"].search(
                [("group_id", "in", groups.ids)]
            )
            rec.all_picking_ids = all_picking_ids

Back to entity