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
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
2
Antworten
5528
Ansichten
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
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren