how to implement the onchage method to get the bom_id when i select a product_id ?
i got this class
_name = "estimation.cout"
product_id = fields.Many2one('product.product', string='Produit')
bom_id = fields.Many2one('mrp.bom', string='Nomenclature')
when i select a product i want to get his bom
like in MRP
can u please tell me what and how i should write the onchage to make that works