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
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
2
Risposte
6460
Visualizzazioni
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()
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
How to solved this SQL error ??
Risolto
|
|
1
set 21
|
3575 | |
|
|
0
ott 21
|
1691 | ||
|
|
2
mar 18
|
10396 | ||
|
ERROR SQL Connection (bad user)
Risolto
|
|
3
dic 23
|
19139 | |
|
|
0
mag 24
|
1242 |