Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
12304 Visninger

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
Kassér
Bedste svar

Change your code to:

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

This will give you:


Avatar
Kassér

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

Related Posts Besvarelser Visninger Aktivitet
1
mar. 21
3030
5
maj 25
7358
1
okt. 24
22397
1
aug. 21
3245
0
jun. 21
6425