From 9b06e256e11a80f57255f2cc9c649232a3c149db Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Fri, 25 Mar 2011 15:48:08 +0530 Subject: [PATCH] [FIX] Account:Exception raised when setting an Account InActive bzr revid: ara@tinyerp.com-20110325101808-r1yfsenlr10lgdv4 --- addons/account/account.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/account/account.py b/addons/account/account.py index abf77eea968..9716817dd0e 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -309,6 +309,9 @@ class account_account(osv.osv): null_result = dict((fn, 0.0) for fn in field_names) for id in ids: res[id] = sums.get(id, null_result) + else: + for id in ids: + res[id] = 0.0 return res def _get_company_currency(self, cr, uid, ids, field_name, arg, context=None):