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(