From 62620258b8ace3f52610a21cf97f4c7d057dad75 Mon Sep 17 00:00:00 2001 From: PNurm <65661625+PNurm@users.noreply.github.com> Date: Mon, 16 Sep 2024 11:28:22 +0300 Subject: [PATCH] Fix permissions issue when clicking phonecalls in crm.lead --- crm_phonecall/models/crm_lead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm_phonecall/models/crm_lead.py b/crm_phonecall/models/crm_lead.py index da59612c6a4..8c4434b8294 100644 --- a/crm_phonecall/models/crm_lead.py +++ b/crm_phonecall/models/crm_lead.py @@ -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(