From 1a2d7b79dfc7e83cd9207b19a50aa4cea59572e7 Mon Sep 17 00:00:00 2001 From: Thierry Ducrest Date: Thu, 9 Nov 2023 09:15:23 +0100 Subject: [PATCH] fixup! shopfloor_reception: Split moves before posting --- shopfloor_reception/services/reception.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shopfloor_reception/services/reception.py b/shopfloor_reception/services/reception.py index 7f68efcdb28..0800eb65142 100644 --- a/shopfloor_reception/services/reception.py +++ b/shopfloor_reception/services/reception.py @@ -1297,6 +1297,8 @@ def _auto_post_line(self, selected_line): new_move._action_confirm(merge=False) new_move._recompute_state() new_move._action_assign() + lock = self._actions_for("lock") + lock.for_update(move) move._recompute_state() new_move.extract_and_action_done()