Fix _explode_move_values method

This commit is contained in:
Jes?s Mart?n Jim?nez 2016-07-07 12:26:52 +02:00
parent 5318f4b356
commit 3659fded77
1 changed files with 3 additions and 3 deletions

View File

@ -386,10 +386,10 @@ class Production:
def _explode_move_values(self, from_location, to_location, company,
bom_io, quantity):
res = super(Production, self)._explode_move_values(from_location,
move = super(Production, self)._explode_move_values(from_location,
to_location, company, bom_io, quantity)
res['production_step'] = bom_io.step.id if bom_io.step else None
return res
move.production_step = bom_io.step.id if bom_io.step else None
return move
class StockMove: