Odoo Help

0

[SOLVED] How to make button clickable before setting mandatory fields in wizard ? - odoo 9

By
Shameem iWesabe
on 11/15/16, 6:16 AM 434 views

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 !

2
ayman mohammed adam
On 11/15/16, 7:18 AM

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 ...

Wonderful, It is working :)

Shameem iWesabe
on 11/16/16, 12:19 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 11/15/16, 6:16 AM
Seen: 434 times
Last updated: 11/16/16, 1:29 AM