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

In odoo, with a Python "raise warning" command I am able to launch a window that warns me of any error in a form. But until I fix that bug I can't save the form.

Now I want to create a simple confirmation window, that if I hit OK it will let me save the form.

Is there a command for this in Python?

Thank you very much.

아바타
취소
작성자

is there a way to do this with python in an automatic action?

like: raise Warning("xxxx")

but instead of RAISE WARNING, another command?

Thanks!

작성자 베스트 답변

is there a way to do this with python in an automatic action?

like: raise Warning("xxxx")

but instead of RAISE WARNING, another command?

Thanks!

아바타
취소
베스트 답변

two possible solutions:

1. using attribute "confirm" on view of button

2. create wizard to do as your needs

아바타
취소
베스트 답변

I added directly in the view of the model.

<button name="buttonClickEvent" string="Approve" type="object" class="oe_highlight"
confirm="Proceed to Approve Call?"/>


아바타
취소
관련 게시물 답글 화면 활동
0
3월 25
1592
4
4월 24
174502
0
12월 23
2337
5
7월 25
228944
1
12월 22
3480