From 6cc21d77fadfb74ba02c87e3e9086e5a607e1582 Mon Sep 17 00:00:00 2001 From: "psi (Open ERP)" Date: Mon, 17 Jan 2011 10:45:25 +0530 Subject: [PATCH] [FIX] account: account_analytic_plan break the creation of inovice from analytic lines lp bug: https://launchpad.net/bugs/701895 fixed bzr revid: psi@tinyerp.co.in-20110117051525-3lwmprov1zamc2vp --- addons/account/account_move_line.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index dfd6acdf7c3..e232be457f0 100755 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -901,7 +901,8 @@ class account_move_line(osv.osv): if context.get('account_id', False): cr.execute('SELECT code FROM account_account WHERE id = %s', (context['account_id'], )) res = cr.fetchone() - res = _('Entries: ')+ (res[0] or '') + if res: + res = _('Entries: ')+ (res[0] or '') return res if (not context.get('journal_id', False)) or (not context.get('period_id', False)): return False