Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Purchase Stock
Entity: purchase.order
Compute Method: _compute_effective_date
| Inputs | Method | Outputs |
|---|---|---|
|
for order in self:
pickings = order.picking_ids.filtered(lambda x: x.state == 'done' and x.location_dest_id.usage != 'supplier' and x.date_done)
- order.effective_date = min(pickings.mapped('date_done'), default=False)
+ order.effective_date = max(pickings.mapped('date_done'), default=False)
|
|
