update odoo customize

This commit is contained in:
ivan deng
2023-02-06 15:09:33 +08:00
parent 99129271f3
commit 3cca087168
9 changed files with 112 additions and 115 deletions

View File

@@ -32,7 +32,7 @@
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
<p>This moduld allows user to quickly customize and debranding Odoo. Quick debug, Language Switcher,
Online Documentation Access,Quick Data Clear. </p>
<p class="mb16">Support odoo 15,14,13, 12, 11, 10, 9. Including community and enterprise version. </p>
<p class="mb16">Support odoo 16,15,14,13, 12, 11, 10, 9. Including community and enterprise version. </p>
</div>
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
<p>If you want to change the login page. </p>
@@ -47,6 +47,9 @@
<div class="oe_span12">
<h2 class="oe_slogan">This is a Long Term Support Apps.</h2>
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
<h3>Update: v16.23.02.06</h3>
<p>Fix odoo ribbon.</p>
<p>Fix odoo translate update.</p>
<h3>Update: v16.22.10.21</h3>
<p>Add odoo16 support.</p>
<h3>Update: v15.21.10.21</h3>

View File

@@ -5,9 +5,8 @@
Copyright 2017 Xavier Jiménez <xavier.jimenez@qubiq.es>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
odoo.define("web_environment_ribbon.ribbon", function(require) {
odoo.define("web_environment_ribbon.ribbon", function (require) {
"use strict";
var rpc = require("web.rpc");
var core = require("web.core");
@@ -33,7 +32,7 @@ odoo.define("web_environment_ribbon.ribbon", function(require) {
return image.style.color !== "rgb(255, 255, 255)";
}
core.bus.on("web_client_ready", null, function() {
core.bus.on("web_client_ready", null, function () {
var ribbon = $('<div class="test-ribbon hidden"/>');
$("body").append(ribbon);
ribbon.hide();
@@ -41,7 +40,7 @@ odoo.define("web_environment_ribbon.ribbon", function(require) {
rpc.query({
model: "web.environment.ribbon.backend",
method: "get_environment_ribbon",
}).then(function(ribbon_data) {
}).then(function (ribbon_data) {
// Ribbon name
if (ribbon_data.name && ribbon_data.name !== "False") {
ribbon.html(ribbon_data.name);

View File

@@ -26,3 +26,10 @@
.test-ribbon b {
font-size: 20px;
}
header:hover ~ .test-ribbon,
nav:hover ~ .test-ribbon {
/* Ease out ribbon when user is using the navigation in Odoo */
opacity: 0;
transition: 0.2s ease;
}