details: https://code.tryton.org/tryton/commit/65cfcdc70794
branch: default
user: Cédric Krier <[email protected]>
date: Sat Nov 29 14:59:43 2025 +0100
description:
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.
diffstat:
modules/stock/period.py | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diffs (14 lines):
diff -r 4ab7b9eb0ef5 -r 65cfcdc70794 modules/stock/period.py
--- a/modules/stock/period.py Sat Nov 29 14:57:15 2025 +0100
+++ b/modules/stock/period.py Sat Nov 29 14:59:43 2025 +0100
@@ -104,10 +104,6 @@
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__()