Odoo v13.
1) I have 'table0' model. I want to create "form view" where I can choose one record from 'table1'.
It's easy. I created field Many2one to 'table1' and I added this field to "Form view". It works :)
I have trouble with this:
2) Now, when record from 'table1' is chosen I want to choose another record from 'table2' which is related with 'table1' by field One2many. I want to make it in one "form view". How to define this field in "table0" model.
For example, let's say that 'table0' model is "Gift Card" model. 'table1' model is "Group of toys" model. 'table2' model is "Toy" model.
So, In "Gift Card" model form view we first choose one "group of toys", then we can choose one toy from chosen "group of toys". I don't know how to create field in 'table0' model and show it in form view that it will meet my expectations.
I hope You understand the idea ;)
Thank You for any help :)