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

Module: Stock Transport

Entity: stock.picking.batch

Compute Method: _compute_end_date

View 19.0
Inputs Method Outputs
  • end_date
  • scheduled_date
+ for batch in self:
+             if not batch.end_date or (batch.scheduled_date and batch.end_date < batch.scheduled_date):
+                 batch.end_date = batch.scheduled_date + timedelta(hours=1) if batch.scheduled_date else False
  • end_date

Back to entity