Skip to Content
Menú
This question has been flagged
2 Respostes
12266 Vistes

When I did this at v13:

raise Warning("You can't do that!")

it looked like this:



Now at v14, it looks like this:




How can I get a "user-friendly" message like at v13?


Avatar
Descartar
Best Answer

Change your code to:

raise UserError("You can't do that!") 

This will give you:


Avatar
Descartar

odoo.exceptions.Warning: An error occurred Please use the copy button to report the error to your support service

Related Posts Respostes Vistes Activitat
1
de març 21
2992
5
de maig 25
7266
1
d’oct. 24
22332
1
d’ag. 21
3231
0
de juny 21
6378