Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5453 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
4
nov. 24
12410
1
apr. 24
3927
1
aug. 20
5066
2
sep. 19
18342
0
jun. 16
3203