From a3675d59e70bdb919282414bb87d5a72d2cc739d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 5 Jan 2009 10:24:47 +0100 Subject: [PATCH] Fix infinite loop in get_credit_debit with a date --- account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account.py b/account.py index b6de591d1e..6a60ad45d1 100644 --- a/account.py +++ b/account.py @@ -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: