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: