I'm writing a module in odoo. I hve defined some parent products and their child products. I want to do, when I'm selecting a parent product from many2one field, this parent product's childs will open in Treeview lines automatically. This tree view field is defined as one2many field.
I used onchange_parent_product funtion, also added filter according to parent_product_id.
But treeview nothing show when I select a parent product..
Please help me how can I fill treeview lines automatically ?