can i use sql query in my automated (user interface) action with odoo?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
2
返信
5479
ビュー
Yes, if you select "execute python code", you can execute SQL in automated action as shown in an example:
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 |