summaryrefslogtreecommitdiff
path: root/addons/google_drive
diff options
context:
space:
mode:
Diffstat (limited to 'addons/google_drive')
-rw-r--r--addons/google_drive/models/google_drive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_drive/models/google_drive.py b/addons/google_drive/models/google_drive.py
index b1eda64b842..f0e494c8405 100644
--- a/addons/google_drive/models/google_drive.py
+++ b/addons/google_drive/models/google_drive.py
@@ -160,7 +160,7 @@ class GoogleDrive(models.Model):
# check if a model is configured with a template
configs = self.search([('model_id', '=', res_model)])
config_values = []
- for config in configs:
+ for config in configs.sudo():
if config.filter_id:
if config.filter_id.user_id and config.filter_id.user_id.id != self.env.user.id:
#Private