Hello,
I am trying to show in the edit view of a model, a list of records that belong to a field that is also a list of records.
I will try to give an example of what I am trying to achieve to clarify my problem.
Lets say I have a model "Travel", one travel has a list of cars and every car has a list of drivers. I need to show the list of drivers of a travel in its edit view. The model "Travel" has a One2Many field called cars for its cars, and the model "Car" has also a One2Many field called driver for its drivers.
If I try to use the field cars.drivers in the view I get an error because the model "Travel" has no field called cars.drivers.
If I create in my model "Travel" a field called, for example, travel_drivers as a One2Many field of drivers that is related to cars.drivers, the list shows the drivers of the first car in my field cars, but it does not show all the drivers from all the cars.
How can I achieve this?
Thank you.