Fix print labels devices

This commit is contained in:
RubenPX 2022-05-11 18:42:29 +02:00
parent 60de8fde63
commit 42760e5b9e
2 changed files with 3 additions and 1 deletions

View File

@ -111,6 +111,8 @@ window.addEventListener("DOMContentLoaded", () => {
} else { } else {
btnSelectAll.disabled = false; btnSelectAll.disabled = false;
} }
get_device_list();
} }
TableController.getAllDevices().forEach(item => { TableController.getAllDevices().forEach(item => {

View File

@ -392,7 +392,7 @@
{% for doc in lot.trade.documents %} {% for doc in lot.trade.documents %}
<tr> <tr>
<td> <td>
{% if doc.url.to_text() %} {% if doc.url %}
<a href="{{ doc.url.to_text() }}" target="_blank">{{ doc.file_name}}</a> <a href="{{ doc.url.to_text() }}" target="_blank">{{ doc.file_name}}</a>
{% else %} {% else %}
{{ doc.file_name}} {{ doc.file_name}}