From 4b3d75d7d5921015203fe7d98535a9d011005d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Lodeiros?= Date: Tue, 28 Sep 2021 21:53:00 +0200 Subject: [PATCH] [FIX]pms_l10n_es: traveller report document type name --- pms_l10n_es/wizards/traveller_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: