Check for running deferrals when closing a standard period only

Invoice deferred creates moves only on standard period

Closes #15042
This commit is contained in:
Adrià Tarroja Caubet
2026-09-10 08:20:15 +02:00
parent b2521dcaf2
commit 0b1971ab59
+3 -1
View File
@@ -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):