跳至内容
菜单
此问题已终结
2 回复
12278 查看

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

相关帖文 回复 查看 活动
1
3月 21
2994
5
5月 25
7287
1
10月 24
22343
1
8月 21
3237
0
6月 21
6390