Hi ! I have created a stored proecedure in postgreSQL and i would like to call it in my python code. Someone could help?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
2
Trả lời
5763
Lượt xem
Hello,
You can write as following :
self._cr.execute("select * from procudure_name(%s);"%(value))
¿Can you translate the stored procedure to ORM? Call stored procedure is not the best solution.
But if not, you can make a get request to external service
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký