Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions crm_lead_to_task/models/crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ def action_crm_to_task(self):
self.company_id.crm_force_project_id
)
else:
action = self.env.ref(
"crm_lead_to_task.crm_lead_convert2task_action"
).read()[0]
action = (
self.env.ref("crm_lead_to_task.crm_lead_convert2task_action")
.sudo()
.read()[0]
)
action["context"] = {"default_lead_id": self.id}

return action