Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
5842 Visualizações

I have created a wizard in odoo 9 . It hasn't close button in default. I have created a close button.

<button string="Discard" name="cancel_wizard" type="object"/>
@api.one
def cancel_wizard(self):
    pass

It do not close before setting all mandatory fields.

Can you explain any solution, Thanks in advance !

Avatar
Cancelar
Melhor resposta

dear shameem@aχoncoms,

<button string="Discard" class="oe_link" special="cancel"/>

you can make something like this in your code and then not need to do any thing in .py file


I hOpe I helped you ...

Avatar
Cancelar
Autor

Wonderful, It is working :)

what if it was in a form view?

I put a button to fill some fields

but i couldnt click it before adding mandatory fields

Publicações relacionadas Respostas Visualizações Atividade
4
nov. 24
13532
1
abr. 24
4286
1
ago. 20
5365
2
set. 19
18691
0
jun. 16
3467