Customize the web layout by setting the page title to "Chennora", updating the favicon, and adding a "Back to Dashboard" button.

This commit is contained in:
Alaguraj0361 2026-03-04 19:53:25 +05:30
parent c8ed83248b
commit 015f703026

View File

@ -8,22 +8,11 @@
</xpath>
<xpath expr="//body" position="inside">
<script type="text/javascript">
if (window.self !== window.top) {
document.documentElement.classList.add('o_in_iframe');
window.addEventListener('load', function() {
var btn = document.querySelector('.o_dashboard_return_btn');
if (btn) btn.style.display = 'none';
});
}
</script>
<style>
.o_in_iframe .o_dashboard_return_btn { display: none !important; }
</style>
<t t-set="is_editor" t-value="request.params.get('enable_editor') or request.params.get('edit')"/>
<t t-if="not request.env.user._is_public() and not is_editor">
<!-- Use a simpler, non-JS approach to avoid OWL errors -->
<t t-set="is_editor_or_backend" t-value="request.params.get('enable_editor') or request.params.get('edit') or request.httprequest.path.startswith('/web')"/>
<t t-if="not request.env.user._is_public() and not is_editor_or_backend">
<a href="/" class="o_dashboard_return_btn d-print-none" title="Back to Dashboard"
style="position: fixed; bottom: 20px; right: 20px; z-index: 99999;
style="position: fixed; bottom: 20px; right: 20px; z-index: 9999;
background-color: #d6111e; color: #ffff !important; padding: 12px 24px;
border-radius: 50px; text-decoration: none; font-weight: bold;
box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: flex; align-items: center;