Skip to content

Commit

Permalink
[FIX] mis_builder: use sudo when calling ir.ui.view
Browse files Browse the repository at this point in the history
  • Loading branch information
cav-adhoc committed May 30, 2024
1 parent 3cb7ab9 commit 2612633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mis_builder/models/mis_report_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ def _get_drilldown_views_and_orders(self):
@api.model
def _get_drilldown_model_views(self, model_name):
self.ensure_one()
types = self.env["ir.ui.view"]._read_group(
types = self.env["ir.ui.view"].sudo()._read_group(
[("model", "=", model_name)], ["type"], ["type"]
)
views_order = self._get_drilldown_views_and_orders()
Expand Down

0 comments on commit 2612633

Please sign in to comment.