From b193f4c38f30390f6429352b26d83a1a19f0a959 Mon Sep 17 00:00:00 2001 From: eLBati Date: Thu, 10 Sep 2015 10:06:04 +0200 Subject: [PATCH] FIX Access Denied with users != admin --- base_report_auto_create_qweb/models/report_xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_report_auto_create_qweb/models/report_xml.py b/base_report_auto_create_qweb/models/report_xml.py index 34408d711..c6b47160f 100644 --- a/base_report_auto_create_qweb/models/report_xml.py +++ b/base_report_auto_create_qweb/models/report_xml.py @@ -41,7 +41,7 @@ class IrActionsReport(models.Model): self.env['ir.model.data'].create(model_data_data) value_view_data = self._prepare_value_view_data( name, model) - self.env['ir.values'].create(value_view_data) + self.env['ir.values'].sudo().create(value_view_data) @api.model def create(self, values):