[FIX] (5.0 - 6.0)Account : Manual reconcilation should work with the option of Skip Draft Entries of Journal

bzr revid: vra@tinyerp.com-20100510102537-wunu090pw1ycpbub
This commit is contained in:
Jay(Open ERP) 2010-05-10 15:55:37 +05:30 committed by vra
parent 17abd658c3
commit ee48c965e5
1 changed files with 1 additions and 1 deletions

View File

@ -1031,7 +1031,7 @@ class account_move_line(osv.osv):
# 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 and not context.get('no_store_function'):
if check and ((not context.get('no_store_function')) or journal.entry_posted):
tmp = self.pool.get('account.move').validate(cr, uid, [vals['move_id']], context)
if journal.entry_posted and tmp:
self.pool.get('account.move').button_validate(cr,uid, [vals['move_id']],context)