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.

0

Displaying the bom list in another model

By
SavingVanilla
on 12/28/15, 1:39 AM 378 views

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! 

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: 12/28/15, 1:39 AM
Seen: 378 times
Last updated: 12/28/15, 1:59 AM