[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:
parent
ce77a74bc9
commit
759f31ed3c
|
@ -1128,6 +1128,8 @@ class account_move_line(osv.osv):
|
||||||
'period_id': context['period_id'],
|
'period_id': context['period_id'],
|
||||||
'journal_id': context['journal_id']
|
'journal_id': context['journal_id']
|
||||||
}
|
}
|
||||||
|
if vals.get('ref', ''):
|
||||||
|
v.update({'ref': vals['ref']})
|
||||||
move_id = move_obj.create(cr, uid, v, context)
|
move_id = move_obj.create(cr, uid, v, context)
|
||||||
vals['move_id'] = move_id
|
vals['move_id'] = move_id
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue