İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
12262 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
2992
5
May 25
7264
1
Eki 24
22330
1
Ağu 21
3230
0
Haz 21
6376