Hello,
I need to create a certain model that has these fields among others:
- employee_id (self explaining)
- year (which corresponds to a year between the date employee_id's contract started and now)
I need to be able to select a year within said range, but I can't use Selection because it can't be populated via onchange, and using Many2one would require creating a whole model that only contains the field 'year', plus populating the new model's table with an arbitrary range, which doesn't make a lot of sense.
Is there any other way to achieve what I want?
Thanks a lot.
need more explanation ....
Selection can be populated onchange. there are many examples in source code.