diff --git a/crm_project_create/__manifest__.py b/crm_project_create/__manifest__.py index 4add8bbe572..39d32e6226a 100644 --- a/crm_project_create/__manifest__.py +++ b/crm_project_create/__manifest__.py @@ -14,8 +14,8 @@ "application": False, "installable": True, "depends": [ - "crm", - "sale_project", + "crm", + "sale_project", ], "data": [ "security/ir.model.access.csv", diff --git a/crm_project_create/wizards/crm_create_project.py b/crm_project_create/wizards/crm_create_project.py index 8b615e60025..d40c99153a9 100644 --- a/crm_project_create/wizards/crm_create_project.py +++ b/crm_project_create/wizards/crm_create_project.py @@ -19,14 +19,13 @@ def create_project(self): .create(self._prepare_create_project_values()) ) self.lead_id.project_id = project - project.message_post_with_view( + project.message_post_with_source( "mail.message_origin_link", - values={"self": self.lead_id.project_id, "origin": self.lead_id}, + render_values={"self": self.lead_id.project_id, "origin": self.lead_id}, subtype_id=self.env.ref("mail.mt_note").id, author_id=self.env.user.partner_id.id, ) - def _prepare_create_project_values(self): return { "name": self.project_name,