fix(fusion_clock): hide the Odoo backend escape hatch on the NFC kiosk

The website module injects a fixed "frontend->backend" nav
(.o_frontend_to_backend_nav — the floating apps-grid/edit button) on every
frontend page for any internal user. Since the kiosk account is an internal
user, that button let a kiosk user tap through to the Odoo backend.

Hide it with a page-scoped inline style in the kiosk template head, so it's
suppressed only on /fusion_clock/kiosk/nfc and the real website keeps its nav.

Live as 19.0.3.11.8 (verified the rule is in the rendered template).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-30 20:35:50 -04:00
parent ab3e6fa1e2
commit 55da42e91f
2 changed files with 6 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
{
'name': 'Fusion Clock',
'version': '19.0.3.11.7',
'version': '19.0.3.11.8',
'category': 'Human Resources/Attendances',
'summary': 'Complete Employee T&A with Geofencing, Shifts, Penalties, Overtime, Kiosk, Dashboard & Payroll Export',
'description': """

View File

@@ -14,6 +14,11 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="apple-mobile-web-app-title" content="Fusion Clock Kiosk"/>
<link rel="apple-touch-icon" href="/fusion_clock/static/description/icon.png"/>
<!-- Kiosk lockdown: hide Odoo's frontend->backend nav (the floating
"Go to your Odoo Apps" / edit button the website module injects for
logged-in internal users) so a kiosk user can't reach the backend.
Page-scoped here so the real website keeps its nav. -->
<style>.o_frontend_to_backend_nav { display: none !important; }</style>
</t>
<div id="nfc_kiosk_root" class="nfc-kiosk"