[FIX] bugfixed concurrency writing when creating new account_move_line from an existing account_move (in form view)
bzr revid: qdp@tinyerp.com-20090206115026-022hfzsxb2jfkje5
This commit is contained in:
parent
e46aa430b6
commit
223f8ef37d
|
@ -936,6 +936,8 @@ class account_move_line(osv.osv):
|
|||
del vals['account_tax_id']
|
||||
|
||||
if not is_new_move and 'date' in vals:
|
||||
if context and ('__last_update' in context):
|
||||
del context['__last_update']
|
||||
self.pool.get('account.move').write(cr, uid, [move_id], {'date':vals['date']}, context=context)
|
||||
if check:
|
||||
tmp = self.pool.get('account.move').validate(cr, uid, [vals['move_id']], context)
|
||||
|
|
Loading…
Reference in New Issue