[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:
committed by
Thibault Delavallée
parent
c4133ec2eb
commit
dc66b7aec3
@@ -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,
|
||||
)
|
||||
|
||||
# ------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user