Hi there,
I want to send push notifications to employees (like it made in "Discuss" module when you receive a message), when i create or update record of 'my.model' like this:
with registry('odoo').cursor() as cr:
env = Environment(cr, SUPERUSER_ID, {})
kw = {
'employee_id': employee_id,
}
env['my.model'].create(kw)
Example from the internet of the notification i want : https://notificare.com/static/b353409e114416dbad07522dedc21d17/ab5a8/webpush-edge-popup-windows10.png
How can i achieve this?
Thanks!