Fix typo when resetting context for deferral computation of debit/credit

(transplanted from 099fcdd4b2d8dfe2472461c4864260cc5734fcf4)
This commit is contained in:
Cédric Krier
2012-11-08 13:17:03 +01:00
parent fe9ad19efc
commit a3023fe4fc
+1 -1
View File
@@ -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: