Skip to content

Commit

Permalink
FIX Access Denied with users != admin
Browse files Browse the repository at this point in the history
  • Loading branch information
eLBati authored and SimoRubi committed Mar 17, 2021
1 parent ec48f4d commit 4e88d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_report_auto_create_qweb/models/report_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _create_qweb(self, name, qweb_name, module, model, arch):
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):
Expand Down

0 comments on commit 4e88d1f

Please sign in to comment.