Skip to Content
Menu
This question has been flagged
2 Replies
11579 Views

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
Discard
Best Answer

Change your code to:

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

This will give you:


Avatar
Discard

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

Related Posts Replies Views Activity
1
Mar 21
2343
1
Oct 24
20486
4
Oct 24
3723
1
Aug 21
2372
0
Jun 21
5153