This question has been flagged
2 Replies
4449 Views

we are Novice in ODOO and Python the all we need it's simple,

we need the BoM(Bill Of materials) in our quotations in ODOO 10.

Avatar
Discard
Best Answer

I think you should start by adding a reverse field to product.product to point out the bom

class ProductWithBom(models.Model):

    _inherit = "product.product"

    bom = fields.One2many(          
        comodel_name='mrp.bom',
        inverse_name='product_id',
        string="Bill of material")


Then you should be able to access the bom corresponding the product from the product itself (may need so tweaking)

Avatar
Discard