Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1445 มุมมอง
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
965
3
มิ.ย. 23
11206
1
ก.ค. 25
3508
0
มี.ค. 25
874
2
พ.ย. 23
2528