Skip to Content
मेन्यू
This question has been flagged
2 Replies
12260 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
मार्च 21
2992
5
मई 25
7260
1
अक्तू॰ 24
22330
1
अग॰ 21
3230
0
जून 21
6376