Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
12261 Vistas

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?


Avatar
Descartar
Mejor respuesta

Change your code to:

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

This will give you:


Avatar
Descartar

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

Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 21
2992
5
may 25
7262
1
oct 24
22330
1
ago 21
3230
0
jun 21
6376