Skip to content

Commit

Permalink
Fix permissions issue when clicking phonecalls in crm.lead
Browse files Browse the repository at this point in the history
  • Loading branch information
PNurm authored Sep 16, 2024
1 parent 7829832 commit 6262025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crm_phonecall/models/crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _compute_phonecall_count(self):

def button_open_phonecall(self):
self.ensure_one()
action = self.env.ref("crm_phonecall.crm_case_categ_phone_incoming0")
action = self.env.ref("crm_phonecall.crm_case_categ_phone_incoming0").sudo()
action_dict = action.read()[0] if action else {}
action_dict["context"] = safe_eval(action_dict.get("context", "{}"))
action_dict["context"].update(
Expand Down

0 comments on commit 6262025

Please sign in to comment.