[FIX] pms-l10n-es: fix document type @ traveller report (change name by code 2)

This commit is contained in:
miguelpadin
2021-10-27 10:08:52 +02:00
parent e4da0abf8c
commit 9e5915ea6b

View File

@@ -101,7 +101,7 @@ class TravellerReport(models.TransientModel):
for line in lines:
content += "2"
# [P|N|..]
if line.document_type.name != "D":
if line.document_type.code != "D":
content += "||" + line.document_number.upper() + "|"
else:
content += "|" + line.document_number.upper() + "||"