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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
2
回复
5736
查看
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
|
2749 | ||
|
0
10月 21
|
1691 | ||
|
2
3月 18
|
9550 | ||
|
3
12月 23
|
18527 | ||
|
0
5月 24
|
822 |