[MERGE] Account: account_analytic_plan break the creation of inovice from analytic lines

bzr revid: mra@mra-laptop-20110117055637-q6rgiptw70h9169q
This commit is contained in:
Mustufa Rangwala 2011-01-17 11:26:37 +05:30
commit dcc21af8d2
1 changed files with 2 additions and 1 deletions

View File

@ -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