Skip to content

Commit

Permalink
[IMP]Issue riba without admin permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
matteonext committed May 19, 2023
1 parent a067baa commit a470eb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_it_ricevute_bancarie/wizard/wizard_riba_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def create_rdl(
"l10n_it_ricevute_bancarie", "view_riba_distinta_form"
)
action_id = action and action[1] or False
action = act_obj.browse(action_id)
action_vals = action.read()[0]
action_xml_id = act_obj.browse(action_id).xml_id
action_vals = self.env["ir.actions.act_window"]._for_xml_id(action_xml_id)
action_vals["views"] = [(view and view[1] or False, "form")]
action_vals["res_id"] = rd_id
return action_vals

0 comments on commit a470eb9

Please sign in to comment.