跳至內容
選單
此問題已被標幟
1 回覆
5430 瀏覽次數

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

相關帖文 回覆 瀏覽次數 活動
4
11月 24
12364
1
4月 24
3907
1
8月 20
5062
2
9月 19
18328
0
6月 16
3194