From e2af76c6fa714721a6b1087545847a272cd2c6d1 Mon Sep 17 00:00:00 2001 From: oleksandrpaziuk Date: Wed, 21 Feb 2018 12:21:13 +0200 Subject: [PATCH] [10.0][FIX] If res contain action we should return and show it --- sale_order_lot_selection/model/sale.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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