From a65cbb07f23dd9fc03986de1d1a6566aa7495c30 Mon Sep 17 00:00:00 2001 From: lreficent Date: Fri, 21 Apr 2017 18:14:12 +0200 Subject: [PATCH] [9.0][FIX] Solves issue when doing picking with several moves. --- stock_cycle_count/models/stock_move.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stock_cycle_count/models/stock_move.py b/stock_cycle_count/models/stock_move.py index 192973ff2..302810ba1 100644 --- a/stock_cycle_count/models/stock_move.py +++ b/stock_cycle_count/models/stock_move.py @@ -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