While create the UserError message, unable to more the string to new line,
Facing in version odoo 17.
Example:
raise UserError(_( "Warning ! \n\n Qty must be grather than zero."))
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
While create the UserError message, unable to more the string to new line,
Facing in version odoo 17.
Example:
raise UserError(_( "Warning ! \n\n Qty must be grather than zero."))
Hi,
\n is working as you can see below:
def raise_error(self):
raise UserError(_("Warning!\n\nQty must be greater than zero."))

You need to restart the Odoo service and upgrade your Module.
Thanks Waleed Ali Mohsen
I tried but i didn't see any changes on this, I am facing this in 17.0
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
3
มี.ค. 25
|
3954 | ||
|
|
0
มี.ค. 25
|
2070 | ||
|
|
4
ม.ค. 25
|
3258 | ||
|
|
2
เม.ย. 25
|
3806 | ||
|
|
0
ก.พ. 25
|
1731 |