Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4062 Vues

this.do_notify("Success", "Your Message has been send successfully...");

I can see the following error:

Uncaught Javascript Error > this.do_notify is not a function

Avatar
Ignorer
Meilleure réponse

Hi,

Instead of using this.do_notify in odoo 15, we should use this.displayNotification.

So try changing the code to

this.displayNotification({
   type: 'warning',
   title: _t('Success'),
   message: "Your Message has been send successfully...",
   sticky: true
});

Regards

Avatar
Ignorer
Auteur

Thanks
but when used displayNotification function
i getting this error
TypeError: cannot read properties of undefined ( reading 'displayNotification)

Publications associées Réponses Vues Activité
1
juin 23
1945
1
mai 23
1902
0
mai 20
3147
2
janv. 20
8700
1
mars 15
6222