Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5967 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

https://ibb.co/tLpfjWn


Imagine profil
Abandonează
Cel mai bun răspuns
query = """
select * from your_table where id = """+str(self.id)+"""
"""
self.env.cr.execute(query)
data = self.env.cr.fetchone()



Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
sept. 21
2964
0
oct. 21
1691
2
mar. 18
9715
3
dec. 23
18674
0
mai 24
946