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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
|
3530 | |||
|
5
พ.ค. 25
|
8660 | |||
|
Warning on Odoo 14 with track_visibility
แก้ไขแล้ว
|
1
ต.ค. 24
|
23324 | ||
|
1
ส.ค. 21
|
3771 | |||
|
0
มิ.ย. 21
|
7138 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.