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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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?
Change your code to:
raise UserError("You can't do that!") This will give you:
odoo.exceptions.Warning: An error occurred Please use the copy button to report the error to your support service
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
1
mar 21
|
3495 | |||
|
5
mag 25
|
8585 | |||
|
1
ott 24
|
23233 | |||
|
1
ago 21
|
3723 | |||
|
0
giu 21
|
7069 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.