Bugfix: account.move without 'name'

bzr revid: olt@tinyerp.com-20081215115755-v8qvzenx5sbml988
This commit is contained in:
Olivier Laurent 2008-12-15 12:57:55 +01:00
parent 4297d5a743
commit 86ece83053
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ class account_invoice(osv.osv):
i[2]['period_id'] = period_id
if not 'name' in move:
move['name'] = inv.name
move['name'] = inv.name or '/'
move_id = self.pool.get('account.move').create(cr, uid, move)
new_move_name = self.pool.get('account.move').browse(cr, uid, move_id).name