From 13bee59286b9de899bc39f51798b6f4d67769235 Mon Sep 17 00:00:00 2001 From: Danimar Ribeiro Date: Thu, 12 Sep 2019 00:41:17 -0300 Subject: [PATCH] [FIX] Utilizando o campo xPed diretamente do produto --- pytrustnfe/Servidores.py | 2 +- pytrustnfe/nfe/templates/NfeAutorizacao.xml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pytrustnfe/Servidores.py b/pytrustnfe/Servidores.py index 9e1ec27..e9c4d1b 100644 --- a/pytrustnfe/Servidores.py +++ b/pytrustnfe/Servidores.py @@ -140,7 +140,7 @@ SVRS = { WS_NFE_RECEPCAO_EVENTO: 'ws/recepcaoevento/recepcaoevento4.asmx?wsdl', # noqa WS_NFE_AUTORIZACAO: 'ws/NfeAutorizacao/NFeAutorizacao4.asmx?wsdl', WS_NFE_RET_AUTORIZACAO: 'ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx?wsdl', # noqa - WS_NFE_CADASTRO: 'ws/cadconsultacadastro/cadconsultacadastro2.asmx?wsdl', # noqa + WS_NFE_CADASTRO: 'ws/cadconsultacadastro/cadconsultacadastro4.asmx?wsdl', # noqa } }, NFCE_MODELO: { diff --git a/pytrustnfe/nfe/templates/NfeAutorizacao.xml b/pytrustnfe/nfe/templates/NfeAutorizacao.xml index 17b3316..bcc49cf 100644 --- a/pytrustnfe/nfe/templates/NfeAutorizacao.xml +++ b/pytrustnfe/nfe/templates/NfeAutorizacao.xml @@ -28,7 +28,7 @@ {{ ide.indPres }} {{ ide.indIntermed }} {{ ide.procEmi }} - Odoo Brasil 10 + {{ ide.verProc }} {% if ide.NFref is defined -%} {% for ref in ide.NFref %} @@ -260,9 +260,7 @@ {% endfor %} {% endif %} - {% if NFe.infNFe.compra is defined %} - {{ NFe.infNFe.compra.xPed }} - {% endif %} + {{ prod.xPed }} {{ prod.nItemPed }} {{ prod.nFCI }} {% for rastro in prod.rastro %}