[pyar] lxml encodig utf-8

Federico Manuel Echeverri Choux echeverrifm en gmail.com
Mar Jul 1 17:39:57 ART 2014


Hola Facundo

¿La factura electrónica ya tiene ese tag?
Si lo tiene

¿Es un xml que tenés dónde?
Es un xml que genero con Openerp ( ODOO )

¿Cómo le agregás la addenda con Jinja?

Si genero un xml que se llama xml_addenda y se lo agrego al xml de la
factura
algo asi ago

<?xml version="1.0" encoding="UTF-8"?>
<cfdi:Comprobante XXXXXXXXXX>
...
...
...
...
</cfdi:Comprobante>

Luego con lxml agrego esto

<?xml version="1.0" encoding="UTF-8"?>
<cfdi:Comprobante XXXXXXXXXX>
...
...
...
...
{{addenda}}
</cfdi:Comprobante>

Y renderizo, es ahi cuando pierdo el primer TAG

y hay proveedores que no me lo acceptan sin eso.

Saludos




Federico Manuel Echeverri Choux
mobile: (+521) 444-1-400683
Tel: (+52) 444-8185539
skype: echeverrifm
twitter: @echeverrifm


2014-07-01 15:20 GMT-05:00 Facundo Batista <facundobatista en gmail.com>:

> 2014-07-01 17:09 GMT-03:00 Federico Manuel Echeverri Choux
> <echeverrifm en gmail.com>:
>
> > Estoy haciendo una addenda de una factura electronica el cual tiene su
> tag
> > <?xml version="1.0" encoding="UTF-8"?>, y con Jinja le agrego la addenda.
>
> ¿La factura electrónica ya tiene ese tag? ¿Es un xml que tenés dónde?
> ¿Cómo le agregás la addenda con Jinja?
>
> Slds.
>
> --
> .    Facundo
>
> Blog: http://www.taniquetil.com.ar/plog/
> PyAr: http://www.python.org/ar/
> Twitter: @facundobatista
> _______________________________________________
> pyar mailing list pyar en python.org.ar
> http://listas.python.org.ar/listinfo/pyar
>
> PyAr - Python Argentina - Sitio web: http://www.python.org.ar/
>
> La lista de PyAr esta Hosteada en USLA - Usuarios de Software Libre de
> Argentina - http://www.usla.org.ar
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20140701/f20b803e/attachment.html>


More information about the pyar mailing list