コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
5479 ビュー

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
2553
0
10月 21
1691
2
3月 18
9326
3
12月 23
18378
0
5月 24
669