콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5426 화면

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
12362
1
4월 24
3907
1
8월 20
5062
2
9월 19
18325
0
6월 16
3186