Skip to Content
Menu
This question has been flagged
3 Replies
3046 Views

Hello Everyone, in fact I'm new to ODOO and I don't have enough information yet but I'm in the process of carrying out a task quickly and I need your help. I developed my web application in LARAVEL and I want to integrate ODOO so that when a user sends an email from my site that it can automatically become a contact in my ODOO account. How to achieve this ? And how to get a API ?

Avatar
Discard
Best Answer

Just saw a package called obuchmann/odoo-jsonrpc search for it on packagist, I will test it this week!

Avatar
Discard
Author Best Answer

Thanks for help, i test ...

Avatar
Discard
Best Answer

Check the Odoo external API docs, the API is quite good in my opinion, i use it to enrich leads with tracking data. If you want to build these kind of custom modules id suggest you try hosting Odoo yourself. You can build custom modules and test them pretty easily in a development enviroment. 

What i would do is create a custom python module in Odoo. 

  1. Look if you could get an API to your mailserver, retrieve the mails with a model in your custom python module. 
  2. Setup a scheduled action in Odoo that calls the python model to retrieve the mails every hour or so.
  3. Then, parse the mail data and convert it into a list of python dictionaries. (1 per email, with sender data etc.) 
  4. Iterate trough the list and send each dictionary using xmlrpc to the Odoo external API to create leads.
  5. Done!

Hope this was of any help.

Cheers! and Happy Coding!

Avatar
Discard