[FIX] Account: creation of journal items with refrence field on it ..remove the ref field on create ..

bzr revid: mra@mra-laptop-20101021060207-1z44kagx1z6vukew
This commit is contained in:
Mustufa Rangwala 2010-10-21 11:32:07 +05:30
parent ce77a74bc9
commit 759f31ed3c
1 changed files with 2 additions and 0 deletions

View File

@ -1128,6 +1128,8 @@ class account_move_line(osv.osv):
'period_id': context['period_id'],
'journal_id': context['journal_id']
}
if vals.get('ref', ''):
v.update({'ref': vals['ref']})
move_id = move_obj.create(cr, uid, v, context)
vals['move_id'] = move_id
else: