From ef7e6009f8033a223bfbcf2e898bf8fadff8d349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 19 Jan 2022 16:26:06 +0000 Subject: [PATCH] [FIX] mail: remove unnecessary model decorator A method that actually runs on recordsets should not have a model decorator. Even if there is no issue this is may be confusing. Task-2710804 (Mail: Clean Mail.Thread API) Part-of: odoo/odoo#82167 --- addons/mail/models/mail_thread.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index adcc5b1f382..50f4f1a9e48 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -2350,7 +2350,6 @@ class MailThread(models.AbstractModel): return True - @api.model def _notify_by_email_prepare_rendering_context(self, message, msg_vals=False, model_description=False, force_email_company=False, force_email_lang=False): """ Prepare rendering context for notification email.