Error al cerrar plantilla

This commit is contained in:
Mauricio Baeza 2018-08-09 15:51:11 -05:00
parent 88085bfa06
commit 4ab3b22f29
2 changed files with 5 additions and 2 deletions

View File

@ -1191,7 +1191,10 @@ class LIBO(object):
options = {'FilterName': 'calc_pdf_Export'}
path_pdf = get_path_temp('.pdf')
self._template.storeToURL(self._path_url(path_pdf), self._set_properties(options))
self._template.close(True)
try:
self._template.close(True)
except:
pass
data = self._read(path_pdf)
_kill(path_ods)
_kill(path_pdf)

View File

@ -345,7 +345,7 @@ var grid_details_cols = [
{id: "valor_unitario", header:{text: 'Valor Unitario', css: 'center'},
width: 100, format: format_currency, css: 'right', editor: 'text'},
{id: 'descuento', header:{text: 'Descuento', css: 'center'},
width: 80, format: format_currency, css: 'right', editor: 'text'},
width: 100, format: format_currency, css: 'right', editor: 'text'},
{id: 'precio_final', hidden: true, header: 'precio_final', width: 80,
format: webix.i18n.priceFormat, css: 'right'},
{id: "importe", header:{text: 'Importe', css: 'center'}, width: 150,