Skip to content

Commit

Permalink
Fix icd9 for none
Browse files Browse the repository at this point in the history
  • Loading branch information
lasley committed Oct 26, 2016
1 parent 84726ad commit bc01720
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connector_carepoint/models/medical_patient_disease.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ class MedicalPatientDiseaseImportMapper(PartnerImportMapper):

@mapping
def pathology_id(self, record):
if not record['icd9']:
return
pathology_id = self.env['medical.pathology'].search([
('code', '=', record['icd9'].strip()),
('code_type_id.name', '=ilike', 'ICD9%'),
Expand Down

0 comments on commit bc01720

Please sign in to comment.