Fix - show version of EmpresaLibre

This commit is contained in:
Mauricio Baeza 2021-02-02 22:09:12 -06:00
parent b3e2671359
commit 05a51741b6
3 changed files with 7 additions and 6 deletions

View File

@ -1140,9 +1140,9 @@ class LIBO(object):
return return
def _others_values(self, data): def _others_values(self, data):
version = data.get('version', '') el_version = data.get('el.version', '')
if version: if el_version:
self._set_cell('{version}', version) self._set_cell('{el.version}', el_version)
return return
def pdf(self, path, data, ods=False): def pdf(self, path, data, ods=False):
@ -2003,7 +2003,8 @@ def get_data_from_xml(invoice, values):
data['pays'] = _cfdipays(doc, data, version) data['pays'] = _cfdipays(doc, data, version)
data['pakings'] = values.get('pakings', []) data['pakings'] = values.get('pakings', [])
# ~ data['version'] = values['version'] # ~ data['version'] = values['version']
data['version'] = version # ~ data['version'] = version
data['el.version'] = values['el.version']
return data return data

View File

@ -49,7 +49,7 @@ from settings import (
PATHS, PATHS,
URL, URL,
VALUES_PDF, VALUES_PDF,
VERSION, VERSION as VERSION_EMPRESA_LIBRE,
RFCS, RFCS,
) )
@ -4034,7 +4034,7 @@ class Facturas(BaseModel):
def _get_not_in_xml(self, invoice, emisor): def _get_not_in_xml(self, invoice, emisor):
pdf_from = Configuracion.get_('make_pdf_from') or '1' pdf_from = Configuracion.get_('make_pdf_from') or '1'
values = {'version': VERSION} values = {'el.version': VERSION_EMPRESA_LIBRE}
values['notas'] = invoice.notas values['notas'] = invoice.notas
values['fechadof'] = str(emisor.fecha_dof) values['fechadof'] = str(emisor.fecha_dof)