diff --git a/sale_order_lot_selection/model/sale.py b/sale_order_lot_selection/model/sale.py index d85c091750e..c7152f64584 100644 --- a/sale_order_lot_selection/model/sale.py +++ b/sale_order_lot_selection/model/sale.py @@ -72,6 +72,8 @@ def _check_move_state(self, line): @api.multi def action_confirm(self): res = super(SaleOrder, self).action_confirm() - for line in self.order_line: - self._check_move_state(line) + if res is True: + for so in self: + for line in so.order_line: + so._check_move_state(line) return res