[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
This commit is contained in:
Chris Biersbach 2013-04-04 11:09:48 +02:00
parent 665cd6c6ea
commit d43b932270
1 changed files with 2 additions and 0 deletions

View File

@ -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({