[FIX] s_env_data_encryption: fix access right issues when using actions
This commit is contained in:
parent
d173b04cd2
commit
c3a3de7aea
|
|
@ -56,7 +56,9 @@ class ServerEnvMixin(models.AbstractModel):
|
||||||
# We don't know which action we are using... take default one
|
# We don't know which action we are using... take default one
|
||||||
action = self.get_formview_action()
|
action = self.get_formview_action()
|
||||||
else:
|
else:
|
||||||
action = self.env["ir.actions.act_window"].browse(action_id).read()[0]
|
action = (
|
||||||
|
self.env["ir.actions.act_window"].browse(action_id).sudo().read()[0]
|
||||||
|
)
|
||||||
action["view_mode"] = "form"
|
action["view_mode"] = "form"
|
||||||
action["res_id"] = self.id
|
action["res_id"] = self.id
|
||||||
views_form = []
|
views_form = []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue