details: https://code.tryton.org/tryton/commit/31477c726809
branch: 8.0
user: Adrià Tarroja Caubet <[email protected]>
date: Thu Sep 10 08:20:15 2026 +0200
description:
Check for running deferrals when closing a standard period only
Invoice deferred creates moves only on standard period
Closes #15042
(grafted from f56a0a6d5558009b138069bdad1c3d7ff9c37c87)
diffstat:
modules/account_invoice_defer/account.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 47db5b1554ef -r 31477c726809 modules/account_invoice_defer/account.py
--- a/modules/account_invoice_defer/account.py Sun Sep 06 10:21:56 2026 +0200
+++ b/modules/account_invoice_defer/account.py Thu Sep 10 08:20:15 2026 +0200
@@ -426,7 +426,9 @@
@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):