[FIX] Account: Account : problem with journals and error messages

lp bug: https://launchpad.net/bugs/615268 fixed

bzr revid: mra@mra-laptop-20101111101353-iwtel2bf7sqdqhby
This commit is contained in:
Mustufa Rangwala 2010-11-11 15:43:53 +05:30
parent ff9a2a5fbb
commit 4e95e42233
1 changed files with 1 additions and 1 deletions

View File

@ -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 !'))