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 : 8.0
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user