From a9154ba93d683933bf47e5fdf8cac87eb0bc3c47 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 7482c6f..543ca03 100644 --- a/pytrustnfe/Servidores.py +++ b/pytrustnfe/Servidores.py @@ -142,7 +142,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 0eb2e3c..0efd5cd 100644 --- a/pytrustnfe/nfe/templates/NfeAutorizacao.xml +++ b/pytrustnfe/nfe/templates/NfeAutorizacao.xml @@ -27,7 +27,7 @@ {{ ide.indFinal }} {{ ide.indPres }} {{ ide.procEmi }} - Odoo Brasil 10 + {{ ide.verProc }} {% if ide.NFref is defined -%} {% for ref in ide.NFref %} @@ -259,9 +259,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 %}