Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5219 Lượt xem

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 !

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 11 24
11881
1
thg 4 24
3626
1
thg 8 20
4810
2
thg 9 19
18128
0
thg 6 16
2997