mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms-l10n-es: fix document type @ traveller report (change name by code 2)
This commit is contained in:
@@ -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() + "||"
|
||||
|
||||
Reference in New Issue
Block a user