İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1980 Görünümler

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."))





Avatar
Vazgeç
En İyi Yanıt

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.

Avatar
Vazgeç
Üretici

Thanks Waleed Ali Mohsen

I tried but i didn't see any changes on this, I am facing this in 17.0

İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Mar 25
2188
0
Mar 25
961
4
Oca 25
1942
2
Nis 25
2258
0
Şub 25
804