Fix show version of Empresa Libre

This commit is contained in:
Mauricio Baeza 2021-02-02 22:10:13 -06:00
commit 5b8cd0ecb2
4 changed files with 8 additions and 7 deletions

View File

@ -19,7 +19,7 @@ la ultima y única versión sobre la que se dará soporte.
1. Entra a la parte administrativa y toma de tus credenciales de timbrado en el
menú "Emisor" ficha "Otros Datos", usuario y token de timbrado.
1. Agregar nuevos requerimientos `sudo apt install pkgconf libxml2-dev libxmlsec1-dev libxmlsec1-openssl`
1. Agregar nuevo requerimiento `pip install xmlsec`
1. Agregar nuevo requerimiento `pip install --user xmlsec`
1. Entrar a la carpeta del sistema: `/opt/empresa-libre`
1. Actualizar `git pull origin master`
1. Entrar a `source/app/controllers/pacs/comerciodigital` y copiar `conf.py.example` a `conf.py`

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)