minor fix
This commit is contained in:
parent
30f6bc25f4
commit
e915d72c13
|
@ -140,15 +140,15 @@ class AppWindow(FrontWindow):
|
||||||
if self.tasks_station:
|
if self.tasks_station:
|
||||||
try:
|
try:
|
||||||
result = self.SaleLine.get_data_command_and_task(args)
|
result = self.SaleLine.get_data_command_and_task(args)
|
||||||
|
orders = result.get('orders', [])
|
||||||
|
tasks = result.get('tasks', [])
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception('Error de conexion internet')
|
logger.exception('Error de conexion internet obtener tareas y comandas')
|
||||||
orders = result['orders']
|
|
||||||
tasks = result['tasks']
|
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
orders = self.SaleLine.get_data_command(args)
|
orders = self.SaleLine.get_data_command(args)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception('Error de conexion internet')
|
logger.exception('Error de conexion internet obtener comanda')
|
||||||
# TODO: for remove this option
|
# TODO: for remove this option
|
||||||
else:
|
else:
|
||||||
logger.warning('The backend sale_pos_frontend_rest is deprecation, update version')
|
logger.warning('The backend sale_pos_frontend_rest is deprecation, update version')
|
||||||
|
@ -164,7 +164,6 @@ class AppWindow(FrontWindow):
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception('Error de conexion internet al marcar tareas')
|
logger.exception('Error de conexion internet al marcar tareas')
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
receipt = Receipt(context={}, environment='restaurant')
|
receipt = Receipt(context={}, environment='restaurant')
|
||||||
result_print = receipt.print_tasks(tasks)
|
result_print = receipt.print_tasks(tasks)
|
||||||
|
|
Loading…
Reference in New Issue