[FIX]pms_api_rest: avoid use obsolete vat_document_type field

This commit is contained in:
Darío Lodeiros
2022-10-23 20:53:33 +02:00
parent 1f179c1f38
commit 9e6296b2c2

View File

@@ -124,7 +124,7 @@ class PmsPartnerService(Component):
if partner.aeat_identification
else None,
vatDocumentType="02"
if partner.vat_document_type
if partner.vat
else partner.aeat_identification_type
if partner.aeat_identification_type
else None,
@@ -444,7 +444,7 @@ class PmsPartnerService(Component):
if partner.aeat_identification
else None,
vatDocumentType="02"
if partner.vat_document_type
if partner.vat
else partner.aeat_identification_type
if partner.aeat_identification_type
else None,