[FIX] stock: missing context on call of stock.move copy

Closes #4993
This commit is contained in:
Yannick Vaucher 2015-01-30 17:48:01 +01:00 committed by Olivier Dony
parent 972d966554
commit aa26c5a81c
1 changed files with 1 additions and 1 deletions

View File

@ -2513,7 +2513,7 @@ class stock_move(models.Model):
}
if context.get('source_location_id'):
defaults['location_id'] = context['source_location_id']
new_move = self.copy(cr, uid, move.id, defaults)
new_move = self.copy(cr, uid, move.id, defaults, context=context)
ctx = context.copy()
ctx['do_not_propagate'] = True