审批流代码:
result = True
x_effective_date = record.x_effective_date
for line in record.line_ids:
if line.validate_date!=x_effective_date:
raise ValidationError('保持单据生效日与薪资档案项的生效日一致')
审批流代码:
result = True
x_effective_date = record.x_effective_date
for line in record.line_ids:
if line.validate_date!=x_effective_date:
raise ValidationError('保持单据生效日与薪资档案项的生效日一致')