diff --git a/pms_l10n_es/wizards/traveller_report.py b/pms_l10n_es/wizards/traveller_report.py index 5038d905a..10eb7a97c 100644 --- a/pms_l10n_es/wizards/traveller_report.py +++ b/pms_l10n_es/wizards/traveller_report.py @@ -101,11 +101,11 @@ class TravellerReport(models.TransientModel): for line in lines: content += "2" # [P|N|..] - if line.document_type != "D": + if line.document_type.name != "D": content += "||" + line.document_number.upper() + "|" else: content += "|" + line.document_number.upper() + "||" - content += line.document_type + "|" + content += line.document_type.name + "|" content += line.document_expedition_date.strftime("%Y%m%d") + "|" content += line.lastname.upper() + "|" if line.lastname2: