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
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
2
Respostas
5506
Visualizações
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()
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
How to solved this SQL error ??
Resolvido
|
|
1
set. 21
|
2595 | |
|
0
out. 21
|
1691 | ||
|
2
mar. 18
|
9339 | ||
ERROR SQL Connection (bad user)
Resolvido
|
|
3
dez. 23
|
18404 | |
|
0
mai. 24
|
683 |