Check for running deferrals when closing a standard period only

Invoice deferred creates moves only on standard period

Closes #15042
(grafted from f56a0a6d5558009b138069bdad1c3d7ff9c37c87)

--HG--
branch : 7.0
This commit is contained in:
Adrià Tarroja Caubet committed 2026-09-10 08:20:15 +02:00
1 parent f84ebe9f60
commit d389789fdc
1 file changed
+3 -1
+3 -1
View File
@@ -420,7 +420,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):