跳至内容
菜单
此问题已终结
1 回复
5800 查看

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
13393
1
4月 24
4243
1
8月 20
5322
2
9月 19
18653
0
6月 16
3427