diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index fe893b9ccbe..84778dc0928 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -1274,7 +1274,7 @@ class account_move_line(osv.osv): done = {} for line in self.browse(cr, uid, ids, context=context): err_msg = _('Move name (id): %s (%s)') % (line.move_id.name, str(line.move_id.id)) - if line.move_id.state <> 'draft' and (not line.journal_id.entry_posted): + if line.move_id.state <> 'draft': raise osv.except_osv(_('Error!'), _('You cannot do this modification on a confirmed entry. You can just change some non legal fields or you must unconfirm the journal entry first.\n%s.') % err_msg) if line.reconcile_id: raise osv.except_osv(_('Error!'), _('You cannot do this modification on a reconciled entry. You can just change some non legal fields or you must unreconcile first.\n%s.') % err_msg)