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

Module: Inventory

Entity: stock.picking

Compute Method: _compute_date_deadline

Inputs Method Outputs
for picking in self:
            moves = picking.move_ids.filtered(lambda m: m.state != 'cancel' and m.date_deadline)
            if picking.move_type == 'direct':
                picking.date_deadline = min(moves.mapped('date_deadline'), default=False)
            else:
                picking.date_deadline = max(moves.mapped('date_deadline'), default=False)

Back to entity