diff --git a/stock_vertical_lift/models/vertical_lift_operation_base.py b/stock_vertical_lift/models/vertical_lift_operation_base.py index 216ac921c..4409b032f 100644 --- a/stock_vertical_lift/models/vertical_lift_operation_base.py +++ b/stock_vertical_lift/models/vertical_lift_operation_base.py @@ -303,7 +303,7 @@ class VerticalLiftOperationBase(models.AbstractModel): self.ensure_one() if not self.step() == "release": return - self.next_step() + return self.next_step() def _render_product_packagings(self, product): if not product: diff --git a/stock_vertical_lift/models/vertical_lift_operation_pick.py b/stock_vertical_lift/models/vertical_lift_operation_pick.py index 217a36c85..484e6abda 100644 --- a/stock_vertical_lift/models/vertical_lift_operation_pick.py +++ b/stock_vertical_lift/models/vertical_lift_operation_pick.py @@ -105,14 +105,15 @@ class VerticalLiftOperationPick(models.Model): def button_release(self): """Release the operation, go to the next""" - super().button_release() + res = super().button_release() if self.step() == "noop": # we don't need to release (close) the tray until we have reached # the last line: the release is implicit when a next line is # fetched self.shuttle_id.release_vertical_lift_tray() # sorry not sorry - return self._rainbow_man() + res = self._rainbow_man() + return res def button_skip(self): """Skip the operation, go to the next""" diff --git a/stock_vertical_lift/models/vertical_lift_operation_put.py b/stock_vertical_lift/models/vertical_lift_operation_put.py index ca17d2666..b19ff307f 100644 --- a/stock_vertical_lift/models/vertical_lift_operation_put.py +++ b/stock_vertical_lift/models/vertical_lift_operation_put.py @@ -172,11 +172,12 @@ class VerticalLiftOperationPut(models.Model): self.current_move_line_id.fetch_vertical_lift_tray_dest() def button_release(self): - super().button_release() + res = super().button_release() if self.count_move_lines_to_do_all() == 0: # we don't need to release (close) the tray until we have reached # the last line: the release is implicit when a next line is # fetched if the tray change self.shuttle_id.release_vertical_lift_tray() # sorry not sorry - return self._rainbow_man() + res = self._rainbow_man() + return res