@api.multi
@api.onchange('exam_date')
def onchange_date_onday(self):
for rec in self:
if rec.exam_date:
week_day = datetime.strptime(rec.exam_date, "%Y-%m-%d")
rec.day_of_week = week_day.strftime("%A").title()
i wrote this code getting this error what i will do anybody can help me