[FIX] hw_posbox_homepage: Hide certificate error

When the iot run without server we display an certificate error.

This error is useless because we can't get a certificate without server.

Some customer a worry about this error

With this commit we hide this comment if we not connected to a Odoo server

closes odoo/odoo#162371

Signed-off-by: Yaroslav Soroko (yaso) <yaso@odoo.com>
This commit is contained in:
lejeune quentin
2024-04-18 16:38:23 +00:00
parent 02461534d2
commit 4775ed2f15
@@ -194,6 +194,7 @@
<td class="heading">Server</td>
<td><a href='{{ server_status }}' target=_blank>{{ server_status }}<a class="btn btn-sm float-end" href='/server'>configure</a></td>
</tr>
{% if server_status != "Not Configured" %}
<tr class="{{ 'warn-tr' if not is_certificate_ok }}">
<td class="heading">HTTPS certificate</td>
<td>
@@ -212,7 +213,6 @@
{% endif %}
</td>
</tr>
{% if server_status != "Not Configured" %}
<tr>
<td class="heading">Six payment terminal</td>
<td>{{ six_terminal }} <a class="btn btn-sm float-end" href='/six_payment_terminal'>configure</a></td>