Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
12308 Представления

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?


Аватар
Отменить
Лучший ответ

Change your code to:

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

This will give you:


Аватар
Отменить

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

Related Posts Ответы Просмотры Активность
1
мар. 21
3036
5
мая 25
7400
1
окт. 24
22423
1
авг. 21
3249
0
июн. 21
6451