From 12c2bc14e77cb1299f6cde4d6b044f1ee755d82a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 4 Jan 2022 22:17:13 +0100 Subject: [PATCH] Lock move table when closing period issue11093 review395221002 --- period.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/period.py b/period.py index b0a8a265b5..d68864ae91 100644 --- a/period.py +++ b/period.py @@ -302,8 +302,9 @@ class Period(Workflow, ModelSQL, ModelView): Account = pool.get('account.account') transaction = Transaction() - # Lock period to be sure no new period will be created in between. + # Lock period and move to be sure no new record will be created JournalPeriod.lock() + Move.lock() for period in periods: with transaction.set_context(