Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене

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! 

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
трав. 24
5442
4
квіт. 22
3143
1
трав. 20
5617
0
лют. 20
4074
0
жовт. 18
2792