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

Hello,

I want to execute a Server Action when the button to confirm sale is clicked.

Is it possible to do so ? Through Graphical Interface ?

In Odoo 9

Thanks you !


아바타
취소
베스트 답변

Yes, you can do it. You need to call the run function of "ir.actions.server" object from the confirm method.

Ex:

self.env.ref('module_name.xml_id_of_server_action').run()


아바타
취소
작성자

Ok thank you for your answer ! I have one more question, where can i access the confirm method ?

관련 게시물 답글 화면 활동
0
9월 23
1849
0
9월 23
1544
2
6월 25
10957
6
10월 23
21804
3
3월 24
9259