Odoo Help


How to insert a value into one2many field using JAVA API?

on 11/12/14, 3:43 AM 1,946 views

I am using java api webservice. I want create,read,update,delete(CRUD) values into my one2many field. I tried many ways to insert the values,but no output.

Then i insert values manually into the table and tried to read it. No output.

My fields are below


experience : fields.one2many('employee_experience','name')



name : fields.many2one(hr.employee)

firm_name : fields.char()

year : fields.date()

salary : fields.char()


I want to insert a value into firm_name,year,salary and also want to read these value through java api web service.

How can insert/read/update/delete values in a one2many field using JAVA API?








| 5 3 6
Jakarta, Indonesia
On 11/12/14, 6:33 AM

Look for the fields.py in the OpenERP/Odoo source and, within that file, search for one2many or many2many class.  There is an explanation above each of the class on how you can add/link a record with some existing record.

Specifically for one2many, as the child object (the many ends) will have a field that specify which parent object it belongs to, you can also create/update the child object one by one, specifying the parent object to link, after the parent object has been successfully created.

I didnt get you. Can you please explain?

on 11/12/14, 7:36 AM

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/12/14, 3:43 AM
Seen: 1946 times
Last updated: 9/26/17, 12:14 AM