Browse Source

[FIX] Utilizando o campo xPed diretamente do produto

master
Danimar Ribeiro 6 years ago
committed by Felipe Corrêa Ramos
parent
commit
13bee59286
  1. 2
      pytrustnfe/Servidores.py
  2. 6
      pytrustnfe/nfe/templates/NfeAutorizacao.xml

2
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: {

6
pytrustnfe/nfe/templates/NfeAutorizacao.xml

@ -28,7 +28,7 @@
<indPres>{{ ide.indPres }}</indPres>
<indIntermed>{{ ide.indIntermed }}</indIntermed>
<procEmi>{{ ide.procEmi }}</procEmi>
<verProc>Odoo Brasil 10</verProc>
<verProc>{{ ide.verProc }}</verProc>
{% if ide.NFref is defined -%}
{% for ref in ide.NFref %}
<NFref>
@ -260,9 +260,7 @@
</detExport>
{% endfor %}
{% endif %}
{% if NFe.infNFe.compra is defined %}
<xPed>{{ NFe.infNFe.compra.xPed }}</xPed>
{% endif %}
<xPed>{{ prod.xPed }}</xPed>
<nItemPed>{{ prod.nItemPed }}</nItemPed>
<nFCI>{{ prod.nFCI }}</nFCI>
{% for rastro in prod.rastro %}

Loading…
Cancel
Save