Skip to Content
Menu
This question has been flagged
1 Reply
5045 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

hr_employee()

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

 

employee_experience()

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?

 

 

 

 

Avatar
Discard
Best Answer

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.

Avatar
Discard
Author

I didnt get you. Can you please explain?