Fix infinite loop in get_credit_debit with a date

This commit is contained in:
Cédric Krier committed 2009-01-05 10:24:47 +01:00
1 parent 0aca2258b4
commit a3675d59e7
1 file changed
+2 -2
+2 -2
View File
@@ -751,8 +751,8 @@ class Account(OSV):
else:
ctx = context.copy()
ctx['fiscalyear'] = fiscalyear.id
if 'date' in context:
del context['date']
if 'date' in ctx:
del ctx['date']
res2 = self.get_credit_debit(cursor, user, ids, names, arg,
context=ctx)
for account_id in ids: