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
Create an account today to enjoy exclusive features and engage with our awesome community!
Prijavi| Related Posts | Odgovori | Prikazi | Aktivnost | |
|---|---|---|---|---|
|
1
mar. 21
|
3517 | |||
|
5
maj 25
|
8656 | |||
|
1
okt. 24
|
23309 | |||
|
1
avg. 21
|
3761 | |||
|
0
jun. 21
|
7116 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.