跳至內容
選單
此問題已被標幟
2 回覆
5491 瀏覽次數

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
2587
0
10月 21
1691
2
3月 18
9333
3
12月 23
18392
0
5月 24
672