Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1408 Vizualizări
Hello, I would like to know if there is a way from a server action to execute an existing postgresql function in my database


Imagine profil
Abandonează
Cel mai bun răspuns

Hello,

You can execute an existing postgresql function using server actions. 

For that choose the respective server action or create a server action from settings -> Technical -> Server Actions ( it is only available in developer mode). In that server action set the action type to "Execute Python Code". And then write the python code to execute postgresql function. Use self.env.cr.execute() and self.env.cr.fetchone() in the python code.

Hope it helps.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
feb. 25
879
3
iun. 23
11038
1
iul. 25
3414
0
mar. 25
847
2
nov. 23
2471