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'm importing Customers via XML-RPC from an external database, which has realationship with the companies inside openerp. I'm wishing to put those companies parent_id, so i set the parent_id to: [ 'id_of_the_parent_company', 'name_of_the_parent_company'] and the XML-RCP accepts this. Yet i dont see any result inside OpenERP.
What am I doing wrong, or miss to do?
try to use the following syntax to set the company for a customer:
The ID must be a database ID of an entry of the model
res.partner. If there exists an entry of
res.partner with DB-ID 5 you can write:
(I assume that you are using the write-method of XMLRPC)
There is also another field in the customer object:
company_id, if you want to set the related company for the customer. Be aware of the difference between a customer/company and the OpenERP company (your company).
Here is an example of how to use XMLRPC with python: https://accounts.openerp.com/forum/Help-1/question/711/
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: 2/27/13, 7:08 AM|
|Seen: 3490 times|
|Last updated: 3/16/15, 8:10 AM|