Class ExampleCode(models.Model) :
_name = 'example.code'
there is have a one event list
event_list = fields.Selection([
('commu', 'Community Event'),
('company', 'Company Event'),
('school'', 'School Event'),
('collage'', 'Collage Event'),
], string='Event Type')
there 4 set of option based on event_list :
position_company = fields.Selection([
                                                ('ceo', 'CEO'),
                                                ('manager', 'Manager'),
                                                ('employee', 'Employee'),
                                                                                ('other', 'Others')
                                                                                ], string='Position')
position_community = fields.Selection([
                                                ('leader', 'Leader'),
                                                ('vice', 'Vice Leader'),
                                                ('member', 'member'),
                                                ('speaker', 'Speaker'),
                                                ('other', 'Others')
                                                ], string='Position')
position_school = fields.Selection([
                                                ('head', 'Headmaster'),
                                                ('teacher', 'Teacher'),
                                                ('council', 'Student Council'),
                                                ('student', 'Student'),
                                                ('other', 'Others')
                                                ], string='Position')
position_collage = fields.Selection([
                                                ('rector', 'Rector'),
                                                ('lecture', 'Lecturer'),
                                                ('student', 'Collage Student),
                                                ('other', 'Others')
                                                ], string='Position')
so instead of making 4 set of them i wanna to put them all in one fields selection then it would be invisible based on event_list is that possible ? if possible can you show me how to do it ?
reason why i wanna do something like this because i dont wanna show 4 position on one tree view so i should make something like this if there is another alternative please tell me how to do this .
Thank you,
Best Regards
