[FIX](5.0 - 6.0) Account : code improved for move line creation
bzr revid: vra@tinyerp.com-20100510140828-o5w5yyd4wegw4uc2
This commit is contained in:
parent
f2d4f864a2
commit
0398d67493
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue