Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
12255 Zobrazení

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
Zrušit
Nejlepší odpověď

Change your code to:

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

This will give you:


Avatar
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
1
bře 21
2991
5
kvě 25
7253
1
říj 24
22326
1
srp 21
3229
0
čvn 21
6371