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.
This commit is contained in:
Cédric Krier
2025-11-29 14:59:43 +01:00
parent b0fe13a8e6
commit fe44ee1a60
-4
View File
@@ -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__()