Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
12305 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 21
3031
5
พ.ค. 25
7362
Warning on Odoo 14 with track_visibility แก้ไขแล้ว
1
ต.ค. 24
22401
1
ส.ค. 21
3246
0
มิ.ย. 21
6427