Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
12249 Tampilan

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
Buang
Jawaban Terbai

Change your code to:

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

This will give you:


Avatar
Buang

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

Post Terkait Replies Tampilan Aktivitas
1
Mar 21
2990
5
Mei 25
7248
1
Okt 24
22321
1
Agu 21
3227
0
Jun 21
6371