From 0171634a71ae63fc5a0ce8859cf507d1a2443832 Mon Sep 17 00:00:00 2001 From: Carlos Date: Wed, 26 Jul 2023 10:44:36 +0200 Subject: [PATCH] [14.0][FIX] base_multi_image: adjust sudo to see images There are some cases that the user don't have settings permission that they couldn't open products due to the fact that if the image of product is not added by this user, odoo returns an error that it does not be allowed to access to the product due to the image --- base_multi_image/models/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_multi_image/models/image.py b/base_multi_image/models/image.py index 324c1123d6d..e6364539780 100644 --- a/base_multi_image/models/image.py +++ b/base_multi_image/models/image.py @@ -106,7 +106,7 @@ def _compute_show_technical(self): ) def _get_image_from_filestore(self): - return self.attachment_id.datas + return self.sudo().attachment_id.datas def _get_image_from_db(self): return self.file_db_store