콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
Hello, I would like to know if there is a way from a server action to execute an existing postgresql function in my database


아바타
취소
베스트 답변

Hello,

You can execute an existing postgresql function using server actions. 

For that choose the respective server action or create a server action from settings -> Technical -> Server Actions ( it is only available in developer mode). In that server action set the action type to "Execute Python Code". And then write the python code to execute postgresql function. Use self.env.cr.execute() and self.env.cr.fetchone() in the python code.

Hope it helps.

아바타
취소
관련 게시물 답글 화면 활동
0
2월 25
854
3
6월 23
10925
1
7월 25
3353
0
3월 25
823
2
11월 23
2436