Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4454 Zobrazení

Hi,


I want to display the BOMs related to a product in the sale order line like so :

https://imgur.com/a/v6oF6BG

I've tried this :

bom_id = fields.Many2one("mrp.bom",string="Bill Of Material")

OR

bom_id = fields.Many2one("mrp.bom", related"product_id.bom_id.product_tmpl_id", string="Bill Of Material")

OR


bom_id = fields.One2Many("mrp.bom", "product_id", string="Bill Of Material")


Any idea ? Thanks in advance

Avatar
Zrušit
Autor Nejlepší odpověď

Managed to solve it myself :


bom_id = fields.Many2one("mrp.bom", related='product_id.bom_id', string="Bill Of Material")
Avatar
Zrušit

Hi cavailles, if you want select the bom in order line and create a manufacturing order as selected bom then below apps might be useful for you.

https://apps.odoo.com/apps/modules/13.0/eq_sale_bom_mrp/

Thanks.

Related Posts Odpovědi Zobrazení Aktivita
1
zář 20
2468
1
dub 22
2653
0
led 25
1097
2
led 24
2123
1
čvn 25
4878