[IMP] mail, various: use overridden method in message_notify

Purpose
=======

In message_notify, when called on a recordset, call model methods instead of
base one defined on MailThread. This allows to use internal methods overrides.

Also perform some linting on calls to ``message_notify`` in order to better
spot calls, parameters, ...

Task-2852908

closes odoo/odoo#92868

Related: odoo/enterprise#28038
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Fabio Barbero
2022-06-18 10:23:03 +02:00
committed by Thibault Delavallée
parent c4133ec2eb
commit dc66b7aec3
21 changed files with 134 additions and 25 deletions
+4 -2
View File
@@ -1437,8 +1437,10 @@ class Article(models.Model):
})
self.with_context(lang=partner_lang).message_notify(
partner_ids=partner.ids, body=body, subject=subject,
email_layout_xmlid='mail.mail_notification_light'
body=body,
email_layout_xmlid='mail.mail_notification_light',
partner_ids=partner.ids,
subject=subject,
)
# ------------------------------------------------------------