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
الردود
5581
أدوات العرض
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()
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
How to solved this SQL error ??
تم الحل
|
|
1
سبتمبر 21
|
2642 | |
|
0
أكتوبر 21
|
1691 | ||
|
2
مارس 18
|
9399 | ||
ERROR SQL Connection (bad user)
تم الحل
|
|
3
ديسمبر 23
|
18452 | |
|
0
مايو 24
|
727 |