i got this error
ValueError: Expected singleton: regular.data(1, 2, 3, 4, 5, 8)
can anybody tell me
py file:
@api.multi
@api.onchange('regulation')
def onchange_get_faileddata(self):
stud_list = []
stud_obj = self.env['regulardata.form']
for rec in self:
if rec.regulation:
stud_list =[{'subject_code': stu.regular.subject_code,'subject_name': stu.regular.subject_name,'subject_type':stu.regular.subject_type}
for stu in stud_obj.search([ ('course_id','=',rec.course_id),('year', '=',rec.year),('semester_id','=', rec.semester_id),
])]
rec.supply_data = stud_list