Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5834 มุมมอง

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 !

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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 :)

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 ตอบกลับ มุมมอง กิจกรรม
4
พ.ย. 24
13507
1
เม.ย. 24
4283
1
ส.ค. 20
5362
2
ก.ย. 19
18684
0
มิ.ย. 16
3466