commit
0e1f312506
|
|
@ -1,4 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import models
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import ir_http
|
||||
from . import res_users_settings
|
||||
|
|
|
|||
|
|
@ -5,10 +5,17 @@
|
|||
|
||||
<xpath expr="//h3" position="replace">
|
||||
<h3 class="px-0">
|
||||
Odex 30
|
||||
Odex 30 Platform
|
||||
</h3>
|
||||
</xpath>
|
||||
|
||||
|
||||
<xpath expr="//div[@id='settings']" position="replace">
|
||||
<div role="tabpanel" id="settings" class="tab-pane active text-muted o_web_settings_compact_subtitle">
|
||||
<small>Copyright © 2017 <a target="_blank" href="https://www.exp-sa.com" style="text-decoration: underline;">Expert Ltd. SA</a></small>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
|
|
|
|||
|
|
@ -40,11 +40,9 @@ class ResConfigSettings(models.TransientModel):
|
|||
"""Generate CSS rules for sidebar menu state"""
|
||||
if self.disable_nav_menu_section:
|
||||
return """
|
||||
/* Sidebar Menu Disabled - Hide Top Menu Sections */
|
||||
.o_main_navbar .o_menu_sections {
|
||||
{
|
||||
display: none !important;
|
||||
visibility: hidden !important;
|
||||
display: none!important;
|
||||
visibility: hidden!important;
|
||||
}
|
||||
"""
|
||||
return ""
|
||||
|
|
|
|||
|
|
@ -1,14 +1,11 @@
|
|||
/** @odoo-module **/
|
||||
|
||||
import { useService } from "@web/core/utils/hooks";
|
||||
import { registry } from "@web/core/registry";
|
||||
import { rpc } from "@web/core/network/rpc"
|
||||
|
||||
/**
|
||||
* Load and inject sidebar CSS rules based on configuration
|
||||
*/
|
||||
export function loadSidebarCSS() {
|
||||
// Get the RPC service
|
||||
const rpc = useService("rpc");
|
||||
|
||||
const loadCSS = async () => {
|
||||
try {
|
||||
|
|
@ -22,11 +19,13 @@ export function loadSidebarCSS() {
|
|||
kwargs: {},
|
||||
}
|
||||
);
|
||||
|
||||
console.log('Fetched sidebar CSS:', css);
|
||||
|
||||
if (css && css.trim()) {
|
||||
// Create a style element and inject the CSS
|
||||
const style = document.createElement('style');
|
||||
style.type = 'text/css';
|
||||
// style.type = 'text/css';
|
||||
style.id = 'sidebar-dynamic-css';
|
||||
style.innerHTML = css;
|
||||
document.head.appendChild(style);
|
||||
|
|
@ -51,4 +50,4 @@ registry.category("web_tour.tours").add("sidebar_css_loader", {
|
|||
});
|
||||
|
||||
// Auto-load CSS on page load
|
||||
// loadSidebarCSS();
|
||||
loadSidebarCSS();
|
||||
|
|
|
|||
Loading…
Reference in New Issue