From fe44ee1a6002109cbe06ca08c09257b90a686233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 29 Nov 2025 14:59:43 +0100 Subject: [PATCH] Remove outdated comment about lock when closing stock period Since c8771e45b861 the lock is taken at the transaction start so the calculated stock quantities are always correct. --- modules/stock/period.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/stock/period.py b/modules/stock/period.py index 6f3f87f76b..66d0f24b5e 100644 --- a/modules/stock/period.py +++ b/modules/stock/period.py @@ -104,10 +104,6 @@ class Period(Workflow, ModelSQL, ModelView): connection = transaction.connection database = transaction.database - # XXX: A move in the period could be inserted before the lock - # from a different transaction. It will not be taken in the pbl - # computation but it is quite rare because only past periods are - # closed. Move.lock() if database.has_select_for(): move = Move.__table__()