[FIX] s_env_data_encryption: fix access right issues when using actions
This commit is contained in:
parent
9051f5fc67
commit
75d98bf433
|
|
@ -56,7 +56,9 @@ class ServerEnvMixin(models.AbstractModel):
|
|||
# We don't know which action we are using... take default one
|
||||
action = self.get_formview_action()
|
||||
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["res_id"] = self.id
|
||||
views_form = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue