Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
12248 Vues

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
Ignorer
Meilleure réponse

Change your code to:

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

This will give you:


Avatar
Ignorer

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

Publications associées Réponses Vues Activité
1
mars 21
2990
5
mai 25
7243
1
oct. 24
22319
1
août 21
3225
0
juin 21
6371