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.
Hi there. I'm wondering if it's possible to obtain the bom list from another model. I wish to display them in the stock_picking model, and I've tried to use 'fields.related' but I could only get certain values from mrp_bom and mrp_bom_list, thus am pretty unclear on how should I link it to the bom list components. I have the product_id in the current model, and I understand that I have to somehow use this field to get its bom list, but to no avail.
'test_relational_field' : fields.related('product_id', 'id',type="integer",relation="mrp.bom")
Any pointers are very much appreciated. Thanks!
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: 12/28/15, 1:39 AM|
|Seen: 574 times|
|Last updated: 12/28/15, 1:59 AM|