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 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?
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.
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: 11/12/14, 3:43 AM|
|Seen: 1557 times|
|Last updated: 3/16/15, 8:10 AM|