This commit is contained in:
Ivan Office
2024-08-20 03:10:29 +08:00
parent 7361a6d3fc
commit fdaaef7e7b
12 changed files with 123 additions and 46 deletions

View File

@@ -133,7 +133,7 @@ App MRP Bom Product Multi Batch Add
For Odoo17. Please get from the follow github. Done for 85%. For Odoo17. Please get from the follow github. Done for 85%.
https://github.com/guohuadeng/app-odoo/tree/17.0 https://github.com/guohuadeng/app-odoo/tree/17.0
White label odoo. UI and Development Enhance. White label odoo. UI and Development Enhance.
Support Odoo 17,16,15,14,13,12,11,10,9. Support Odoo 18,17,16,15,14,13,12,11,10,9.
You can config odoo, make it look like your own platform. You can config odoo, make it look like your own platform.
============ ============
1. Deletes Odoo label in footer 1. Deletes Odoo label in footer
@@ -189,7 +189,7 @@ App MRP Bom Product Multi Batch Add
The user can get the help document just by one click. The user can get the help document just by one click.
## 在符合odoo开源协议的前提下自定义你的odoo系统 ## 在符合odoo开源协议的前提下自定义你的odoo系统
可完全自行设置下列选项,将 odoo 整合进自有软件产品 可完全自行设置下列选项,将 odoo 整合进自有软件产品
支持odoo 17,16,15,14,13,12, 11, 10, 9 版本,社区版企业版通用 支持Odoo 18,17,16,15,14,13,12, 11, 10, 9 版本,社区版企业版通用
============ ============
1. 删除菜单导航页脚的 Odoo 标签 1. 删除菜单导航页脚的 Odoo 标签
2. 将弹出窗口中 "Odoo" 设置为自定义名称 2. 将弹出窗口中 "Odoo" 设置为自定义名称

View File

@@ -67,7 +67,7 @@
9. Customize .rng file 9. Customize .rng file
10. Misc like get distance between two points 10. Misc like get distance between two points
11. Multi-language Support. Multi-Company Support. 11. Multi-language Support. Multi-Company Support.
12. Support Odoo 17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition. 12. Support Odoo 18,17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
13. Full Open Source. 13. Full Open Source.
========== ==========
1. 1.

View File

@@ -58,7 +58,7 @@
</li> </li>
<li> <li>
<i class="fa fa-check-square-o text-primary"></i> <i class="fa fa-check-square-o text-primary"></i>
12. Support Odoo 17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition. 12. Support Odoo 18,17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
</li> </li>
<li> <li>
<i class="fa fa-check-square-o text-primary"></i> <i class="fa fa-check-square-o text-primary"></i>

View File

@@ -88,7 +88,7 @@
App Customize Odoo (Change Title,Language,Documentation,Quick Debug) App Customize Odoo (Change Title,Language,Documentation,Quick Debug)
============ ============
White label odoo. White label odoo.
Support Odoo 17,16,15,14,13,12,11,10,9. Support Odoo 18,17,16,15,14,13,12,11,10,9.
You can config odoo, make it look like your own platform. You can config odoo, make it look like your own platform.
1. Deletes Odoo label in footer 1. Deletes Odoo label in footer
2. Replaces "Odoo" in Windows title 2. Replaces "Odoo" in Windows title

View File

@@ -115,7 +115,7 @@
Addons</a> Addons</a>
</p> </p>
<br> <br>
<h3>支持odoo 17,16,15,14,13,12, 11, 10, 9 版本,社区版企业版通用</h3> <h3>支持Odoo 18,17,16,15,14,13,12, 11, 10, 9 版本,社区版企业版通用</h3>
<ul class="list-group"> <ul class="list-group">
<li class='list-group-item'>1. 删除菜单导航页脚的 Odoo 标签</li> <li class='list-group-item'>1. 删除菜单导航页脚的 Odoo 标签</li>
<li class='list-group-item'>2. 将弹出窗口中 "Odoo" 设置为自定义名称</li> <li class='list-group-item'>2. 将弹出窗口中 "Odoo" 设置为自定义名称</li>
@@ -380,7 +380,7 @@
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;"> <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, <p>This moduld allows user to quickly customize and debranding Odoo. Quick debug, Language Switcher,
Online Documentation Access,Quick Data Clear. </p> Online Documentation Access,Quick Data Clear. </p>
<p class="mb16">Support Odoo 17,16,15,14,13, 12, 11, 10, 9. Including community and enterprise version. </p> <p class="mb16">Support Odoo 18,17,16,15,14,13, 12, 11, 10, 9. Including community and enterprise version. </p>
</div> </div>
</section> </section>

View File

@@ -51,7 +51,7 @@ export class WebEnvironmentRibbon extends Component {
// Ribbon name // Ribbon name
if (ribbon_data.name && ribbon_data.name !== "False") { if (ribbon_data.name && ribbon_data.name !== "False") {
ribbon.classList.remove('o_hidden'); ribbon.classList.remove('o_hidden');
ribbon.html(ribbon_data.name); ribbon.innerHTML = ribbon_data.name;
} }
// Ribbon color // Ribbon color
if (ribbon_data.color && self.validStrColour(ribbon_data.color)) { if (ribbon_data.color && self.validStrColour(ribbon_data.color)) {

View File

@@ -18,7 +18,7 @@
{ {
'name': "odoo18 Enterprise enhance Pack,企业版界面及操作增强", 'name': "odoo18 Enterprise enhance Pack,企业版界面及操作增强",
'version': '24.08.19', 'version': '24.08.20',
'author': 'odooai.cn', 'author': 'odooai.cn',
'category': 'Extra tools', 'category': 'Extra tools',
'website': 'https://www.odooai.cn', 'website': 'https://www.odooai.cn',
@@ -48,13 +48,13 @@
6. Add grid line to Account Reports. Easy to view Data. 6. Add grid line to Account Reports. Easy to view Data.
为财务报表增加行列分隔线,易于看数据及对账。 为财务报表增加行列分隔线,易于看数据及对账。
11. Multi-language Support. Multi-Company Support. 11. Multi-language Support. Multi-Company Support.
12. Support Odoo 17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition. 12. Support Odoo 18,17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
13. Full Open Source. 13. Full Open Source.
========== ==========
1. 1.
2. 2.
11. 多语言支持,多公司支持 11. 多语言支持,多公司支持
12. Odoo 17,16,15,14,13,12, 企业版社区版在线SaaS.sh版等全版本支持 12. Odoo 18,17,16,15,14,13,12, 企业版社区版在线SaaS.sh版等全版本支持
13. 代码完全开源 13. 代码完全开源
""", """,
'price': 68.00, 'price': 68.00,
@@ -77,8 +77,8 @@
('before', 'web/static/src/views/**/*', 'app_web_enterprise/static/src/scss/app_style_before.scss'), ('before', 'web/static/src/views/**/*', 'app_web_enterprise/static/src/scss/app_style_before.scss'),
('after', 'web/static/src/views/**/*', 'app_web_enterprise/static/src/scss/app_style_after.scss'), ('after', 'web/static/src/views/**/*', 'app_web_enterprise/static/src/scss/app_style_after.scss'),
'app_web_enterprise/static/src/webclient/**/*.xml', 'app_web_enterprise/static/src/webclient/**/*.xml',
# 'app_web_enterprise/static/src/xml/**/*.xml', 'app_web_enterprise/static/src/xml/res_config_edition.xml',
# 'app_web_enterprise/static/src/xml/base.xml', # 'app_web_enterprise/static/src/xml/form.xml',
], ],
# 这里是改样式,要 after处理 # 这里是改样式,要 after处理
'web.assets_common': [ 'web.assets_common': [

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<templates xml:space="preserve">
<!-- <t t-name="mail.TrackingValue" t-inherit="mail.TrackingValue" t-inherit_mode="extension" owl="1">-->
<!-- <xpath expr="//span[hasclass('o_TrackingValue_fieldName')]" position="replace">-->
<!-- <span class="o_TrackingValue_fieldName ms-1 fw-bold text-muted" t-esc="trackingValue.formattedChangedField + ':'"/>-->
<!-- </xpath>-->
<!-- <xpath expr="//span[@t-esc='trackingValue.oldValue.formattedValueOrNone']" position="before">-->
<!-- <xpath expr="//span[hasclass('o_TrackingValue_fieldName')]" position="move"/>-->
<!-- </xpath>-->
<!-- </t>-->
</templates>

View File

@@ -1,17 +1,23 @@
// 编辑模式默认 input下方border 有颜色 // 编辑模式默认 input下方border 有颜色。必填的深色
.o_form_view { .o_form_view {
.o_form_view_container { .o_form_view_container {
&:not(.o_field_highlight) .o_field_widget:not(.o_field_invalid):not(.o_field_highlight) .o_input:not(:hover):not(:focus) { &:not(.o_field_highlight) .o_field_widget:not(.o_field_invalid):not(.o_field_highlight) .o_input:not(:hover):not(:focus) {
--o-input-border-color: #{map-get($grays, '200')}; --o-input-border-color: #{map-get($grays, '200')};
} }
&:not(.o_field_highlight) .o_required_modifier.o_field_widget:not(.o_field_invalid):not(.o_field_highlight) .o_input:not(:hover):not(:focus) {
--o-input-border-color: #{map-get($grays, '600')};
}
} }
} }
.o_form_view:not(.o_field_highlight) { .o_form_view:not(.o_field_highlight) {
.o_form_view_container { .o_form_view_container {
.o_field_widget:not(.o_field_invalid):not(.o_field_highlight) .o_input:not(:hover):not(:focus) { &:not(.o_field_highlight) .o_field_widget:not(.o_field_invalid):not(.o_field_highlight) .o_input:not(:hover):not(:focus) {
--o-input-border-color: #{map-get($grays, '200')}; --o-input-border-color: #{map-get($grays, '200')};
} }
&:not(.o_field_highlight) .o_required_modifier.o_field_widget:not(.o_field_invalid):not(.o_field_highlight) .o_input:not(:hover):not(:focus) {
--o-input-border-color: #{map-get($grays, '600')};
}
} }
} }
@@ -23,3 +29,74 @@
} }
} }
//navbar
$o-navbar-background: rgba($o-brand-odoo, .06);
.o_main_navbar {
--NavBar-entry-backgroundColor: $o-navbar-background;
background: $o-navbar-background;
}
//navbar 的下拉箭头
//在顶部
.o_main_navbar {
.o_menu_sections {
.dropdown.dropdown-toggle {
span::after {
display: inline-block;
margin-left: 3.4px;
vertical-align: 3.4px;
content: "";
border-top: 4px solid;
border-right: 4px solid transparent;
border-bottom: 0;
border-left: 4px solid transparent;
}
}
}
}
//在底部时
.o_web_client.navbar_pos_bottom {
.o_main_navbar {
.o_menu_sections {
.dropdown.dropdown-toggle {
span::after {
border-top: 0;
border-bottom: 4px solid;
display: inline-block;
margin-left: 3.4px;
vertical-align: 3.4px;
content: "";
border-right: 4px solid transparent;
border-left: 4px solid transparent;
}
}
.dropup.dropdown-toggle {
span::after {
border-top: 0;
border-bottom: 4px solid;
display: inline-block;
margin-left: 3.4px;
vertical-align: 3.4px;
content: "";
border-right: 4px solid transparent;
border-left: 4px solid transparent;
}
}
}
}
}
//在顶部和底部时
.o-overlay-container {
.dropdown-menu_group.dropdown-header::after {
display: inline-block;
margin-left: 3.4px;
vertical-align: 3.4px;
content: "";
border-top: 4px solid;
border-right: 4px solid transparent;
border-bottom: 0;
border-left: 4px solid transparent;
}
}

View File

@@ -1,12 +0,0 @@
$o-navbar-background: rgba($o-brand-odoo, .05);
.o_main_navbar {
--NavBar-entry-backgroundColor: $o-navbar-background;
background: $o-navbar-background;
.o_menu_sections {
.o_nav_entry, .dropdown-toggle {
background: var(--NavBar-entry-backgroundColor, transparent);
}
}
}

View File

@@ -1,24 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve"> <templates xml:space="preserve">
<t t-name="app_web_enterprise.EnterpriseNavBar" t-inherit="web_enterprise.EnterpriseNavBar" t-inherit-mode="extension"> <!--<t t-name="app_web_enterprise.EnterpriseNavBar" t-inherit="web_enterprise.EnterpriseNavBar" t-inherit-mode="extension">-->
<xpath expr="//a[hasclass('o_menu_toggle')]" position="replace"> <!--&lt;!&ndash; todo: 以下主要是测试,改这个主图标为 O &ndash;&gt;-->
<a href="#" class="o_menu_toggle" t-att-class="{'hasImage': currentApp &amp;&amp; currentApp.webIconData}" accesskey="h" t-ref="menuApps" t-on-click.prevent="() => this.hm.toggle()"> <!-- <xpath expr="//a[hasclass('o_menu_toggle')]" position="replace">-->
<i class="o_menu_toggle_icon text-primary fa fa-2x fa-opera" style="padding-right:8px;" role="img"/> <!-- <a href="#" class="o_menu_toggle" t-att-class="{'hasImage': currentApp &amp;&amp; currentApp.webIconData}" accesskey="h" t-ref="menuApps" t-on-click.prevent="() => this.hm.toggle()">-->
<img <!-- <i class="o_menu_toggle_icon text-primary fa fa-2x fa-opera" style="padding-right:8px;" role="img"/>-->
t-if="currentApp &amp;&amp; currentApp.webIconData" <!-- <img-->
t-att-src="currentApp.webIconData" <!-- t-if="currentApp &amp;&amp; currentApp.webIconData"-->
class="o_menu_brand_icon d-none d-lg-inline position-absolute start-0 h-100 ps-1 ms-2" <!-- t-att-src="currentApp.webIconData"-->
t-att-alt="currentApp.name" <!-- class="o_menu_brand_icon d-none d-lg-inline position-absolute start-0 h-100 ps-1 ms-2"-->
t-ref="appIcon"/> <!-- t-att-alt="currentApp.name"-->
<!-- t-ref="appIcon"/>-->
<span <!-- <span-->
t-if="currentApp" <!-- t-if="currentApp"-->
t-esc="currentApp.name" <!-- t-esc="currentApp.name"-->
class="o_menu_brand d-none d-md-flex ms-3 pe-0"/> <!-- class="o_menu_brand d-none d-md-flex ms-3 pe-0"/>-->
</a> <!-- </a>-->
</xpath> <!-- </xpath>-->
</t> <!--</t>-->
<!-- 菜单有下拉箭头, owl的在 web.NavBar 首行用 MenuDropdown 下拉的用 DropdownItem --> <!-- 菜单有下拉箭头, owl的在 web.NavBar 首行用 MenuDropdown 下拉的用 DropdownItem -->
<!-- owl NavBar--> <!-- owl NavBar-->
<!-- <t t-name="app_web_enterprise.NavBar.SectionsMenu" t-inherit="web.NavBar.SectionsMenu" t-inherit-mode="extension">--> <!-- <t t-name="app_web_enterprise.NavBar.SectionsMenu" t-inherit="web.NavBar.SectionsMenu" t-inherit-mode="extension">-->

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve"> <templates xml:space="preserve">
<t t-inherit="web.res_config_edition" t-inherit-mode="extension"> <t t-inherit="res_config_edition" t-inherit-mode="extension" owl="1">
<xpath expr="//h3" position="replace"> <xpath expr="//div[hasclass('user-heading')]//h3" position="replace">
<h3 class="px-0"> <h3 class="px-0">
Odoo <t t-esc="serverVersion"/> (<a target="_blank" href="https://www.odooai.cn" style="text-decoration: underline;">odooai.cn</a> Edition) Odoo <t t-esc="serverVersion"/> (<a target="_blank" href="https://www.odooai.cn" style="text-decoration: underline;">odooai.cn</a> Edition)
</h3> </h3>