diff --git a/mail_quoted_reply/models/mail_message.py b/mail_quoted_reply/models/mail_message.py index 7adfc54..a401140 100644 --- a/mail_quoted_reply/models/mail_message.py +++ b/mail_quoted_reply/models/mail_message.py @@ -28,7 +28,9 @@ class MailMessage(models.Model): ) def reply_message(self): - action = self.env.ref("mail.action_email_compose_message_wizard").read()[0] + action = self.env["ir.actions.actions"]._for_xml_id( + "mail.action_email_compose_message_wizard" + ) action["context"] = { "default_model": self.model, "default_res_id": self.res_id,