diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index bd053b22352bd..11efed54d080e 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -296,7 +296,7 @@ def button_confirm_cash(self, cr, uid, ids, context=None): continue for item_label, item_account in TABLES: - if getattr(obj.journal_id, item_account): + if not getattr(obj.journal_id, item_account): raise osv.except_osv(_('Error!'), _('There is no %s Account on the journal %s.') % (item_label, obj.journal_id.name,))