From 0b1971ab59602f52bf713b06a615b078fe1a7f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Tarroja=20Caubet?= Date: Thu, 10 Sep 2026 08:20:15 +0200 Subject: [PATCH] Check for running deferrals when closing a standard period only Invoice deferred creates moves only on standard period Closes #15042 --- modules/account_invoice_defer/account.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/account_invoice_defer/account.py b/modules/account_invoice_defer/account.py index 59c698bc07..30270d6c04 100644 --- a/modules/account_invoice_defer/account.py +++ b/modules/account_invoice_defer/account.py @@ -426,7 +426,9 @@ class Period(metaclass=PoolMeta): @classmethod def close(cls, periods): for period in periods: - period.check_invoice_deferred_running() + if period.type == 'standard': + # Invoice deferred creates moves only on standard period + period.check_invoice_deferred_running() super().close(periods) def check_invoice_deferred_running(self):