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: stock.picking

Compute Method: _compute_effective_date

View 19.0
Inputs Method Outputs
  • state
  • location_dest_id
  • location_dest_id.usage
  • date_done
+ for picking in self:
+             if picking.state == 'done' and picking.location_dest_id.usage != 'supplier' and picking.date_done:
+                 picking.days_to_arrive = picking.date_done
+             else:
+                 picking.days_to_arrive = False
  • days_to_arrive

Back to entity