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

can i use sql query in my automated (user interface) action with odoo?

아바타
취소
베스트 답변

Yes, if you select "execute python code", you can execute SQL in automated action as shown in an example:

https://ibb.co/tLpfjWn


아바타
취소
베스트 답변
query = """
select * from your_table where id = """+str(self.id)+"""
"""
self.env.cr.execute(query)
data = self.env.cr.fetchone()



아바타
취소
관련 게시물 답글 화면 활동
1
9월 21
2923
0
10월 21
1691
2
3월 18
9663
3
12월 23
18642
0
5월 24
909