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
def _others_values(self, data):
version = data.get('version', '')
if version:
self._set_cell('{version}', version)
el_version = data.get('el.version', '')
if el_version:
self._set_cell('{el.version}', el_version)
return
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['pakings'] = values.get('pakings', [])
# ~ data['version'] = values['version']
data['version'] = version
# ~ data['version'] = version
data['el.version'] = values['el.version']
return data

View File

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