I am currently running odoo 11 and want to extract the data using its python API so I can transfer it to AWS database. I have the API but not sure about the code.
Asked
Active
Viewed 798 times
-3
-
I can help you but I need more information. If I resume , you want get data from Odoo by the xml_rpc API and inject it in AWS DB. It's possible but. How do you want to do this ? By a python script ? explain all your process. In this fact I can only give you this URL. https://www.odoo.com/documentation/11.0/webservices/odoo.html – jo541 Jun 14 '21 at 15:41
-
@ jo541 thanks for commenting. I would like to set up a data warehouse on AWS using python. – user3343727 Jun 15 '21 at 08:37
1 Answers
0
You have two possibilities:
Out Odoo
If you don't have access to Odoo and cannot add module. You can inject data from external script to you AWS DB with Odoo API.
Step
- Create a python file
- In the python file write code to fetch data from Odoo (More information in documentation https://www.odoo.com/documentation/11.0/webservices/odoo.html)
- With data formatted. Inject data in your AWS DB.
- Add script on server.
- Create a linux cron (If you used linux server).
In Odoo
If you have access to Odoo and can add module. You can inject data from Odoo to you AWS DB.
Step
- Create a module.
- Create a cron to be executed regularly.
- A model with function to connect to your AWS DB and inject data.
- Instal module on your Odoo.

jo541
- 1,155
- 6
- 10