İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
12277 Görünümler

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
Vazgeç
En İyi Yanıt

Change your code to:

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

This will give you:


Avatar
Vazgeç

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 21
2994
5
May 25
7286
1
Eki 24
22343
1
Ağu 21
3237
0
Haz 21
6390