Hi community,
is there a (simple) way to raise a javacript warning message on onchange event.? Basically the same which is already raised when a mandatory field is not filled. Is there any existing module where this function works?
Thanks for help!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi community,
is there a (simple) way to raise a javacript warning message on onchange event.? Basically the same which is already raised when a mandatory field is not filled. Is there any existing module where this function works?
Thanks for help!
In a on change, you can raise a warning or/and values...
return {
'warning': {
'title': _('Title'),
'message': _('Your message'),
},
'value': values,
}
From doc:
Be careful not to use @api.one in that case as it will mangle the dictionary (put it in a list, which is not supported by the web client).
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
0
jan. 25
|
591 | ||
|
4
jul. 24
|
15249 | ||
|
1
jul. 22
|
2574 | ||
|
0
mrt. 15
|
6102 | ||
|
2
jul. 19
|
4206 |
Thanks, Jérémy, for your answer but this is actually not what i meant. I would like to raise a message in the right corner, precisely in the same way as the message that popups when mandatory field is not filled.