[MERGE] forward port of branch 8.0 up to 92c7874
[odoo/odoo.git] / openerp / addons / base / ir / ir_model.py
index e3c72f1..aa14400 100644 (file)
@@ -782,7 +782,7 @@ class ir_model_access(osv.osv):
             _logger.warning('Access Denied by ACLs for operation: %s, uid: %s, model: %s', mode, uid, model_name)
             msg = '%s %s' % (msg_heads[mode], msg_tail)
             raise openerp.exceptions.AccessError(msg % msg_params)
-        return r or False
+        return bool(r)
 
     __cache_clearing_methods = []