Skip to Content
Menu
This question has been flagged
2 Replies
12257 Zobrazenia

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šiť
Best Answer

Change your code to:

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

This will give you:


Avatar
Zrušiť

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

Related Posts Replies Zobrazenia Aktivita
1
mar 21
2992
5
máj 25
7258
1
okt 24
22330
1
aug 21
3230
0
jún 21
6373