today = datetime.datetime.today().date()
result ='_年_月_日'
for item in employee.contract_ids:
if item.contract_agreement_status == 'current_contract' and item.contract_date_start <= today and (not item.contract_date_end or item.contract_date_end >= today):
result = item.contract_date_start.strftime('%Y年%m月%d日')
today = datetime.datetime.today().date()
result ='_年_月_日'
for item in employee.contract_ids:
if item.contract_agreement_status == 'current_contract' and item.contract_date_start <= today and (not item.contract_date_end or item.contract_date_end >= today):
result = item.contract_date_start.strftime('%Y年%m月%d日')