From a3023fe4fc40ebafdfd3e48924136c6b4ccb0297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 8 Nov 2012 13:17:03 +0100 Subject: [PATCH] Fix typo when resetting context for deferral computation of debit/credit (transplanted from 099fcdd4b2d8dfe2472461c4864260cc5734fcf4) --- account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: