Add a Dashboard button to the Odoo navigation bar.

This commit is contained in:
Alaguraj0361 2026-03-12 10:54:02 +05:30
parent 46249085cd
commit d8db1f9334

View File

@ -9,14 +9,6 @@
<span>Dashboard</span>
</a>
</xpath>
<!-- Also add the floating button here to ENSURE it works in backend too -->
<xpath expr="//nav" position="after">
<a t-if="!env.services.user.isPublic" href="/" class="o_dashboard_floating_btn_fixed d-print-none d-flex align-items-center justify-content-center shadow-lg"
style="position: fixed; bottom: 30px; right: 30px; z-index: 9999;
background-color: #d6111e; color: white !important; width: 65px; height: 65px;
border-radius: 50%; text-decoration: none; border: 3px solid white;">
<i class="fa fa-th-large" style="font-size: 28px;"></i>
</a>
</xpath>
</t>
</templates>