From ee48c965e50a90706d37f3ee951dffcaa7e7cb73 Mon Sep 17 00:00:00 2001 From: "Jay(Open ERP)" <> Date: Mon, 10 May 2010 15:55:37 +0530 Subject: [PATCH] [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 --- addons/account/account_move_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 4afb6c3e85e..30d4dea9300 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -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)