Skip to Content
Menu
This question has been flagged
2 Replies
12302 Rodiniai

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?


Portretas
Atmesti
Best Answer

Change your code to:

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

This will give you:


Portretas
Atmesti

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

Related Posts Replies Rodiniai Veikla
1
kov. 21
3029
5
geg. 25
7354
1
spal. 24
22392
1
rugp. 21
3245
0
birž. 21
6424