forked from alaguraj/odoo-testing-addons
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:
parent
c8ed83248b
commit
015f703026
@ -8,22 +8,11 @@
|
|||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
<xpath expr="//body" position="inside">
|
<xpath expr="//body" position="inside">
|
||||||
<script type="text/javascript">
|
<!-- Use a simpler, non-JS approach to avoid OWL errors -->
|
||||||
if (window.self !== window.top) {
|
<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')"/>
|
||||||
document.documentElement.classList.add('o_in_iframe');
|
<t t-if="not request.env.user._is_public() and not is_editor_or_backend">
|
||||||
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">
|
|
||||||
<a href="/" class="o_dashboard_return_btn d-print-none" title="Back to Dashboard"
|
<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;
|
background-color: #d6111e; color: #ffff !important; padding: 12px 24px;
|
||||||
border-radius: 50px; text-decoration: none; font-weight: bold;
|
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;
|
box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: flex; align-items: center;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user