I have two models.
In first model
I have two field: Place(textbox), Type(Selection)-Source,Destination,Both
In second model
I have source, destination, both are many2one fields.
in source field,i want place with type source & both
in destination field,i want place with type destination & both
How can i write the code?
For example:
3 places -- src,dest,both
src (type:source),
dest(type:destination) ,
both(type:both).
When call the source field in any other form, i want to list down src,both in my source field.