From 4e95e42233a6728401d58359d71f791f79aea703 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Thu, 11 Nov 2010 15:43:53 +0530 Subject: [PATCH] [FIX] Account: Account : problem with journals and error messages lp bug: https://launchpad.net/bugs/615268 fixed bzr revid: mra@mra-laptop-20101111101353-iwtel2bf7sqdqhby --- 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 94c4acf24aa..1282d199b80 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -1094,7 +1094,7 @@ class account_move_line(osv.osv): def _update_check(self, cr, uid, ids, context={}): done = {} for line in self.browse(cr, uid, ids, context): - if line.move_id.state <> 'draft': + if line.move_id.state <> 'draft' and (not line.journal_id.entry_posted): raise osv.except_osv(_('Error !'), _('You can not do this modification on a confirmed entry ! Please note that you can just change some non important fields !')) if line.reconcile_id: raise osv.except_osv(_('Error !'), _('You can not do this modification on a reconciled entry ! Please note that you can just change some non important fields !'))