Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I need help with a php script to add a new lead into Open ERP.
I have a web form on my HTML website and when a user captures information on the form, i want the information to be saved in Open ERP as new Lead.
The fields i want to be saved are Name, Surname,Phone,Email,Internal Notes and 3-5 custom fields if thats possible.
Thanks in advance for the help.I am prepared to write the script myself but just need some guidance if anybody has done it before.
Haven't done anything like that before but you need to write 2 things:
- A custom OpenERP module to help you create the new fields. Documentation is online (https://doc.odoo.com/trunk/server/03_module_dev_01/) as well as the source from OpenERP itself. Walk through the standard modules to find loads of information.
- You also need the PHP part. Now, you will most likely use the XML-RPC connection from your website to OpenERP. I have not done such a thing in PHP and am not very familiar with the language, but it should be doable according to this website: http://webkul.com/blog/openerp7-0-with-php-using-xml-rpcreadwrite-and-search-method/
With these 2 steps in mind I think you will do just fine. If you encounter anything specific, feel free to ask.
By the way, as a headstart, the object you will need to create is "crm.lead". Look for that in the CRM module of OpenERP.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/25/14, 3:59 PM|
|Seen: 1491 times|
|Last updated: 3/16/15, 8:10 AM|