Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1368 Представления
Hello, I would like to know if there is a way from a server action to execute an existing postgresql function in my database


Аватар
Отменить
Лучший ответ

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
февр. 25
847
3
июн. 23
10872
1
июл. 25
3342
0
мар. 25
819
2
нояб. 23
2418