Skip to content

Commit

Permalink
[MRG] sale_stock: delivery order must use the confirmation date of sa…
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-papouin authored and Stefan Rijnhart committed Jul 2, 2014
1 parent 75fc0f8 commit 5d795c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sale_stock/sale_stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def _prepare_order_picking(self, cr, uid, order, context=None):
return {
'name': pick_name,
'origin': order.name,
'date': self.date_to_datetime(cr, uid, order.date_order, context),
'date': self.date_to_datetime(cr, uid, order.date_confirm, context),
'type': 'out',
'state': 'auto',
'move_type': order.picking_policy,
Expand Down Expand Up @@ -416,7 +416,7 @@ def _create_pickings_and_procurements(self, cr, uid, order, order_lines, picking
if line.state == 'done':
continue

date_planned = self._get_date_planned(cr, uid, order, line, order.date_order, context=context)
date_planned = self._get_date_planned(cr, uid, order, line, order.date_confirm, context=context)

if line.product_id:
if line.product_id.type in ('product', 'consu'):
Expand Down

0 comments on commit 5d795c4

Please sign in to comment.