Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
12272 Prikazi

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

Change your code to:

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

This will give you:


Avatar
Opusti

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

Related Posts Odgovori Prikazi Aktivnost
1
mar. 21
2993
5
maj 25
7274
1
okt. 24
22337
1
avg. 21
3233
0
jun. 21
6384