[FIX](5.0 - 6.0) Account : code improved for move line creation

bzr revid: vra@tinyerp.com-20100510140828-o5w5yyd4wegw4uc2
This commit is contained in:
Jay(Open ERP) 2010-05-10 19:38:28 +05:30 committed by vra
parent f2d4f864a2
commit 0398d67493
1 changed files with 1 additions and 1 deletions

View File

@ -941,7 +941,7 @@ class account_move_line(osv.osv):
if not ok:
raise osv.except_osv(_('Bad account !'), _('You can not use this general account in this journal !'))
if 'analytic_account_id' in vals and vals['analytic_account_id']:
if vals.get('analytic_account_id',False):
if journal.analytic_journal_id:
vals['analytic_lines'] = [(0,0, {
'name': vals['name'],