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.
how to show record from another objek as one2many in current objek ? it just showing and saving it's id ,,
example i have 2 objek , it called first object and second object both of them has partner id , i create some data in first objek. Then all data from first objek have to shown in second object one2many field base on partner_id , how to do that ? thanks
Firstly, both must be linked to res.partner, right? So, you for the 2nd object you can create field one2many field in res.partner first.
Then you create a related field from 1st object, using partner_id as the link. e.g. 'field_from_2nd_obj': field.related('partner_id', 'field_name_of_2nd_obj_in_res_partner'', type='one2many', ....). Then you can use this in the view.
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: 1/16/15, 5:04 AM|
|Seen: 715 times|
|Last updated: 3/16/15, 8:10 AM|