Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4467 Tampilan

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
Buang
Penulis Jawaban Terbai

Managed to solve it myself :


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

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.

Post Terkait Replies Tampilan Aktivitas
1
Sep 20
2476
1
Apr 22
2675
0
Jan 25
1112
2
Jan 24
2148
1
Jun 25
4899