コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5684 ビュー

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
13061
1
4月 24
4140
1
8月 20
5229
2
9月 19
18530
0
6月 16
3346