Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
12259 Visualizações

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
Cancelar
Melhor resposta

Change your code to:

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

This will give you:


Avatar
Cancelar

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

Publicações relacionadas Respostas Visualizações Atividade
1
mar. 21
2992
5
mai. 25
7258
1
out. 24
22330
1
ago. 21
3230
0
jun. 21
6373