Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1415 Widoki
Hello, I would like to know if there is a way from a server action to execute an existing postgresql function in my database


Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lut 25
903
3
cze 23
11126
1
lip 25
3484
0
mar 25
859
2
lis 23
2499