Odoo Help

Welcome!

This community 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.

1

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

By
Remya
on 11/12/14, 3:43 AM 1,215 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?

 

 

 

 

0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
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?

Remya
on 11/12/14, 7:36 AM

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/12/14, 3:43 AM
Seen: 1215 times
Last updated: 3/16/15, 8:10 AM