From 759f31ed3c005591d72b3fe57e55573813c32c8b Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Thu, 21 Oct 2010 11:32:07 +0530 Subject: [PATCH] [FIX] Account: creation of journal items with refrence field on it ..remove the ref field on create .. bzr revid: mra@mra-laptop-20101021060207-1z44kagx1z6vukew --- addons/account/account_move_line.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 3b459a4e986..8200a7fc321 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -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: