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

Module: Drop Shipping

Entity: purchase.order

Compute Method: _compute_incoming_picking_count

Inputs Method Outputs
  • picking_ids
super()._compute_incoming_picking_count()
for order in self:
            dropship_count = len(order.picking_ids.filtered(lambda p: p.is_dropship))
            order.incoming_picking_count -= dropship_count
            order.dropship_picking_count = dropship_count

Back to entity