Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
12341 Vizualizări

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?


Imagine profil
Abandonează
Cel mai bun răspuns

Change your code to:

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

This will give you:


Imagine profil
Abandonează

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

Related Posts Răspunsuri Vizualizări Activitate
1
mar. 21
3081
5
mai 25
7575
1
oct. 24
22540
1
aug. 21
3323
0
iun. 21
6539