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

How can I get a confirm box when changing a record field, for example changing a boolean?

I know you can make a button with a confirm attribute, but this is not the same.


Thanks

Avatar
Cancelar

Confirmation box in odoo: https://goo.gl/qhWNZJ

Melhor resposta

Hi, 

make an onchange function for this field.

In this onchnage function return a wizard. You need to develop your own confirmation wizard, since there is no default one for changing fields.

In that wizard add 2 buttons 'Yes', 'No', and a text like 'Are you sure'.

If 'yes' is pressed, do nothing. If 'no' is pressed, make the field for the initial state.

Hope, that helps

Avatar
Cancelar
Autor

Thanks, I will look into making a wizard

Melhor resposta

Display confirmation box

https://goo.gl/qhWNZJ


Avatar
Cancelar
Autor

Please read the question. I'm not talking about creating a button.

Publicações relacionadas Respostas Visualizações Atividade
0
fev. 25
1502
0
jan. 25
1256
1
dez. 24
1666
1
jun. 22
5874
1
fev. 19
5152