[FIX] stock: origin of push picking

To determine the origin of a push picking.

opw:641887
This commit is contained in:
Goffin Simon 2015-07-01 15:30:02 +02:00
parent 22bd3bdd2f
commit 6531f4063a
1 changed files with 1 additions and 0 deletions

View File

@ -3751,6 +3751,7 @@ class stock_location_path(osv.osv):
def _prepare_push_apply(self, cr, uid, rule, move, context=None):
newdate = (datetime.strptime(move.date_expected, DEFAULT_SERVER_DATETIME_FORMAT) + relativedelta.relativedelta(days=rule.delay or 0)).strftime(DEFAULT_SERVER_DATETIME_FORMAT)
return {
'origin': move.origin or move.picking_id.name or "/",
'location_id': move.location_dest_id.id,
'location_dest_id': rule.location_dest_id.id,
'date': newdate,