diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-07-06 13:54:22 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-07-06 13:54:22 +0200 |
| commit | 7dc731db8308febb6426ee4c6d61b2a80d40c021 (patch) | |
| tree | 3f181f2643e2030d3a81a4b4ff30fea2da9c5595 /addons/google_drive | |
| parent | 1e30b30a8fc08d539cb68fa214226501a3fb96d6 (diff) | |
| parent | 1f16d34aaa722e5e8a035911501ae59480c6dd2e (diff) | |
[MERGE] forward port branch saas-15 up to 1f16d34aaa7
Diffstat (limited to 'addons/google_drive')
| -rw-r--r-- | addons/google_drive/models/google_drive.py | 2 |
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 |
