hey i want onchange function so if one field value change then the selection data also change , then how i can add.
Detail:
I have two fields,
location_id and product_code.
location_id is a many2one and product_code is a selection field, so the values of product_code depend on the location_id
so how can I dynamically load data into the product_code using an onchange function on location_id?? in odoo17
I really need this.