Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
6428 Vistas

can i use sql query in my automated (user interface) action with odoo?

Avatar
Descartar
Mejor respuesta

Yes, if you select "execute python code", you can execute SQL in automated action as shown in an example:

https://ibb.co/tLpfjWn


Avatar
Descartar
Mejor respuesta
query = """
select * from your_table where id = """+str(self.id)+"""
"""
self.env.cr.execute(query)
data = self.env.cr.fetchone()



Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
sept 21
3549
0
oct 21
1691
2
mar 18
10382
3
dic 23
19111
0
may 24
1234