I have this code of Renumeration Bill model which has a field “exam”
exam = fields.Many2One( 'exam_section.exam', 'Exam' )
This model(exam_section.exam) has an attribute called “exam_type”. Now I have a One2Many field called “purpose” in Renumeration Bill model
purpose = fields.One2Many( 'exam_type.purpose_and_pay_renum', 'renumeration', 'Purpose')
Now in the model “exam_type.purpose_and_pay_renum”, I have a field called “purpose” which goes something like this
purpose = fields.Many2One( 'exam_section.exam_type.renumeration', 'Purpose', domain=[ ('exam_type', '=', ) ] )
Now in this domain I want to fetch the “exam_type” of the “exam” field in Renumeration Bill.
I have tried the following
None of them seem to work. I want to make a domain that correctly fetches the exam_type.
The model ‘exam_section.exam_type.renumeration’ also has the attribute ‘exam_type’
Some help is appreciated