Hello, have a one2many field in BOM. that its xml is:
<tree string="Components" editable="bottom">
<field name="product_id" context="{'default_supply_method':'produce'}" on_change="onchange_product_id(product_id, name)"/>
<field name="product_qty"/>
<field name="product_uom" on_change="onchange_uom(product_id, product_uom)" groups="product.group_uom"/>
<field name="name" invisible="1"/>
<field name="date_start"/>
<field name="date_stop"/>
</tree>
and i use this javascript code to get the id
this.dataset.ids[this.dataset.index]
but the id that i get is not the product_id it is the bom_lines_id . so please help me get the product id from this field. Thanks you.