コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
12269 ビュー

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
2993
5
5月 25
7272
1
10月 24
22335
1
8月 21
3232
0
6月 21
6382