From 822dd5f17755080bbd0e4c29969a255a84206dc5 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 13 Jul 2012 19:38:35 +0200 Subject: [PATCH] Take into account the new 'active' field on ir.model.access. bzr revid: alexis@via.ecp.fr-20120713173835-azbi8iorq1ps2x35 --- addons/share/ir_model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/share/ir_model.py b/addons/share/ir_model.py index 008dd424fa5..0d90aec3eb7 100644 --- a/addons/share/ir_model.py +++ b/addons/share/ir_model.py @@ -40,6 +40,7 @@ class ir_model_access(osv.Model): LEFT JOIN ir_module_category c ON (c.id=g.category_id) WHERE m.model=%s AND + a.active IS true AND (g.share IS NULL or g.share IS false) AND a.perm_''' + access_mode, (model_name,)) return [('%s/%s' % x) if x[0] else x[1] for x in cr.fetchall()]