Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5934 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
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

Related Posts Odpovědi Zobrazení Aktivita
4
lis 24
13811
1
dub 24
4347
1
srp 20
5408
2
zář 19
18758
0
čvn 16
3523