diff --git a/account.py b/account.py index fb559c6729..a7604f62f0 100644 --- a/account.py +++ b/account.py @@ -818,7 +818,7 @@ class Account(ModelSQL, ModelView): res[name][account_id] += deferral[name] else: with Transaction().set_context(fiscalyear=fiscalyear.id, - date=None, dates=None): + date=None, periods=None): res2 = self.get_credit_debit(ids, names) for account_id in ids: for name in names: