In odoo, with a Python "raise warning" command I am able to launch a window that warns me of any error in a form. But until I fix that bug I can't save the form.
Now I want to create a simple confirmation window, that if I hit OK it will let me save the form.
Is there a command for this in Python?
Thank you very much.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
3
Respostas
1976
Visualizações
is there a way to do this with python in an automatic action?
like: raise Warning("xxxx")
but instead of RAISE WARNING, another command?
Thanks!
two possible solutions:
1. using attribute "confirm" on view of button
2. create wizard to do as your needs
I added directly in the view of the model.
<button name="buttonClickEvent" string="Approve" type="object" class="oe_highlight"
confirm="Proceed to Approve Call?"/>
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
0
mar. 25
|
1312 | ||
|
4
abr. 24
|
174158 | ||
|
0
dez. 23
|
2084 | ||
|
5
jul. 25
|
227781 | ||
|
1
dez. 22
|
3215 |
is there a way to do this with python in an automatic action?
like: raise Warning("xxxx")
but instead of RAISE WARNING, another command?
Thanks!