[FIX] mail: respect 'scheduled_date' for push notifications (backport)
Backport of odoo/odoo@1955c55f86 Sending notifications can be delayed by giving 'scheduled_date' as parameter for notification process. This is used notably when a process in several steps should wait for some user input before sending notifications e.g. rating feedback and update done in two steps. Sending web push notifications should respect this scheduling as already done by inbox and email notifications. Task-3695571 Related to Task-3669738 (Mail: Web Push Models Rename and Fixes) Part-of: odoo/odoo#150011
This commit is contained in:
@@ -3080,11 +3080,11 @@ class MailThread(models.AbstractModel):
|
||||
})
|
||||
else:
|
||||
# generate immediately the <mail.notification>
|
||||
# and send the <mail.mail> and the <bus.bus> notifications
|
||||
# and send the <mail.mail>, <mail.push> and the <bus.bus> notifications
|
||||
self._notify_thread_by_inbox(message, recipients_data, msg_vals=msg_vals, **kwargs)
|
||||
self._notify_thread_by_email(message, recipients_data, msg_vals=msg_vals, **kwargs)
|
||||
self._notify_thread_by_web_push(message, recipients_data, msg_vals, **kwargs)
|
||||
|
||||
self._notify_thread_by_web_push(message, recipients_data, msg_vals, **kwargs)
|
||||
return recipients_data
|
||||
|
||||
def _notify_thread_by_inbox(self, message, recipients_data, msg_vals=False, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user