From d43b932270dbe024a3ab639b38c0f1ba6500fb68 Mon Sep 17 00:00:00 2001 From: Chris Biersbach Date: Thu, 4 Apr 2013 11:09:48 +0200 Subject: [PATCH] [FIX] Forwardport of 6.1 fix by han: Do not copy the statement_id value when copying account moves bzr revid: cbi@openerp.com-20130404090948-c7zw5yco1sply0b8 --- addons/account/account.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/account.py b/addons/account/account.py index dd9e869ae4a..5d1916ee7bd 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1383,6 +1383,7 @@ class account_move(osv.osv): 'ref':False, 'balance':False, 'account_tax_id':False, + 'statement_id': False, }) if 'journal_id' in vals and vals.get('journal_id', False): @@ -1419,6 +1420,7 @@ class account_move(osv.osv): context = {} if context is None else context.copy() default.update({ 'state':'draft', + 'ref': False, 'name':'/', }) context.update({