From fe73fc442c9d6852e44321aca3e1e8d10ed726e8 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 6 Jul 2017 11:37:19 +0200 Subject: [PATCH] [FIX] google_drive: avoid AccessError when reading filters If a config use a private filter, others users can't read it due to record rules on filters. --- addons/google_drive/google_drive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/google_drive/google_drive.py b/addons/google_drive/google_drive.py index 90d13584fad..1dcaed3a4e9 100644 --- a/addons/google_drive/google_drive.py +++ b/addons/google_drive/google_drive.py @@ -160,7 +160,7 @@ class config(osv.Model): # check if a model is configured with a template config_ids = self.search(cr, uid, [('model_id', '=', res_model)], context=context) configs = [] - for config in self.browse(cr, uid, config_ids, context=context): + for config in self.browse(cr, SUPERUSER_ID, config_ids, context=context): if config.filter_id: if (config.filter_id.user_id and config.filter_id.user_id.id != uid): #Private