6个占位符依次如下:
result = ''
for item in record.employee_id.person_id.per_national_ids:
if item.is_primary:
result = item.national_id
==============
result=record.employee_id.person_id.per_personal.with_context(lang='zh_CN').x_apc or ''
==============
result = ''
for item in record.employee_id.person_id.phone_ids:
if item.is_primary:
result = item.phone_number
========================
result = ''
for item in record.employee_id.person_id.email_ids:
if item.is_primary:
result = item.email_address
=======================
result = ''
for item in record.employee_id.person_id.emergency_contact_ids:
if item.is_primary:
result = item.name
=======================
result = ''
for item in record.employee_id.person_id.emergency_contact_ids:
if item.is_primary:
result = item.phone
6个占位符依次如下:
result = ''
for item in record.employee_id.person_id.per_national_ids:
if item.is_primary:
result = item.national_id
==============
result=record.employee_id.person_id.per_personal.with_context(lang='zh_CN').x_apc or ''
==============
result = ''
for item in record.employee_id.person_id.phone_ids:
if item.is_primary:
result = item.phone_number
========================
result = ''
for item in record.employee_id.person_id.email_ids:
if item.is_primary:
result = item.email_address
=======================
result = ''
for item in record.employee_id.person_id.emergency_contact_ids:
if item.is_primary:
result = item.name
=======================
result = ''
for item in record.employee_id.person_id.emergency_contact_ids:
if item.is_primary:
result = item.phone