Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
5410 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
2487
0
oct 21
1691
2
mar 18
9253
3
dic 23
18322
0
may 24
644