I have a 3 way relation that i show in my form using a fields.related object.
'event_training_id':fields.related('events_ids_registration', 'event_id', 'registration_ids', relation='event.event', type='one2many', string='Event'
This show me the events in wich the hr.employee is registered, but as the hr.employee can be registered in a bunch of objects, i want to show only those that have a boolean field called is_training marked as True.
My doubt is if this is possible, as the field is_training is within the object event.event, and my related field in hr.employee. I tried with a
domain="[('is_training','=',True)]" but to no luck.
Does anyone know if this is achievable? Thanks in advance.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/25/13, 4:47 PM|
|Seen: 2758 times|
|Last updated: 3/16/15, 8:10 AM|