[9.0][FIX] Solves issue when doing picking with several moves.

This commit is contained in:
lreficent
2017-04-21 18:14:12 +02:00
committed by Lois Rilo
parent 61aaf58a8c
commit a65cbb07f2

View File

@@ -9,8 +9,9 @@ from openerp import api, models
class StockMove(models.Model):
_inherit = 'stock.move'
@api.one
@api.multi
def action_done(self):
super(StockMove, self).action_done()
self.location_id.check_zero_confirmation()
for move in self:
move.location_id.check_zero_confirmation()
return True