Skip to content

Commit

Permalink
[FIX] _prepare_procurement_from_move method in module sale_order_lot_…
Browse files Browse the repository at this point in the history
…selection
  • Loading branch information
mourad-ehm committed May 17, 2017
1 parent f4b63dc commit ee1e465
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sale_order_lot_selection/model/stock.py
Expand Up @@ -11,7 +11,7 @@ class StockMove(models.Model):
_inherit = 'stock.move'

@api.model
def _prepare_procurement_from_move(self, move):
vals = super(StockMove, self)._prepare_procurement_from_move(move)
vals['lot_id'] = move.restrict_lot_id.id
def _prepare_procurement_from_move(self):
vals = super(StockMove, self)._prepare_procurement_from_move()
vals['lot_id'] = self.restrict_lot_id.id
return vals

0 comments on commit ee1e465

Please sign in to comment.