Skip to content

Commit f8cdd63

Browse files
[FIX] l10n_uy_edi: move type when creating cfe from xml
closes #403 Ticket: 112422 Signed-off-by: Victoria Halac - hav (#l10n) <hav@adhoc.inc>
1 parent 737f5d2 commit f8cdd63

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

l10n_uy_edi/models/l10n_uy_cfe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,8 @@ def l10n_uy_get_l10n_uy_received_bills(self):
795795
root = self.l10n_uy_vendor_create_xml_root(response_610, l10n_uy_idreq)
796796
# Check if internal_type is not purchase
797797
# Only implemented for vendor bills and vendor refunds
798-
if 'in_' in self.l10n_uy_get_cfe_document_type(root)._get_move_type():
798+
move_type = self.l10n_uy_get_cfe_document_type(root)._get_move_type()
799+
if move_type and 'in_' in move_type:
799800
self.l10n_uy_create_cfe_from_xml(company, root, transport, l10n_uy_idreq, response_610, journal)
800801
except Exception as exp:
801802
_logger.warning('Encontramos un error al momento de sincronizar comprobantes de proveedor de la compañía: %s (id: %d): %s' % (company.name, company.id, str(exp)))

0 commit comments

Comments
 (0)