update for desc 18

This commit is contained in:
Ivan Office
2024-08-20 01:06:46 +08:00
parent f77b6c4e58
commit dd9428527f
70 changed files with 643 additions and 41 deletions

View File

@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="2000" height="1128" viewBox="0 0 2000 1128">
<polygon fill-opacity=".03" points="0 1077.844 392.627 778.443 1504.99 1127.745 0 1127.745"/>
<polygon fill-opacity=".02" points="392.216 778.443 283.294 0 0 0 0 666.504"/>
<polygon fill-opacity=".03" points="1000 0 2000 1009.98 2000 439.94 1749.817 0"/>
</svg>

After

Width:  |  Height:  |  Size: 366 B

View File

@@ -0,0 +1,149 @@
// 不显示 tooltip
.o_tooltip.o_tooltip_visible {
display: none;
}
// 上方菜单下拉group 也有箭头
.o_main_navbar {
.o-dropdown {
.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;
}
}
}
//list
.o_list_renderer.table-responsive .o_list_table {
//list 改标头背景o2m这里分开写
:not(.o_field_x2many_list) > & thead, tfoot {
tr {
background-color: $o-gray-100;
}
}
.o_field_x2many_list > & thead, tfoot {
tr {
background-color: $o-gray-100;
}
}
//列表标头下显示边框,标尾头显示边框
> :not(:first-child) {
border-top-width: 2px;
}
//列表标头左右下显示边框
--ListRenderer-thead-border-end-color: #{map-get($grays, '300')};
//内容显示边框
.o_data_row > .o_data_cell {
border-left: 1px solid map-get($grays, '300');
border-right: 1px solid map-get($grays, '300');
}
.o_data_row:not(.o_selected_row) > .o_data_cell:not(.o_readonly_modifier):not(:last-child) {
border-left: 1px solid map-get($grays, '300');
border-right: 1px solid map-get($grays, '300');
}
}
//form
// create 按键
.o_form_view .o_form_view_container {
button.o_form_button_create {
min-width: 4rem;
}
}
@media (max-width: 768px) {
.o_form_view .o_form_view_container {
// create 按键
button.o_form_button_create {
padding: 7px 10px;
}
.o_form_sheet_bg .o_form_sheet {
margin: 6px auto;
max-width: 98%;
}
}
}
@media (min-width: 768px) {
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
max-width: 98%;
}
.o_form_view .o_form_view_container .o_notebook .o_notebook_headers {
overflow-x: inherit;
}
}
@media (min-width: 992px) {
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
max-width: 98%;
}
}
@media (min-width: 1200px) {
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
max-width: 98%;
}
}
@media (min-width: 1400px) {
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
max-width: 98%;
}
}
// report
.o_account_reports_page .o_account_reports_table {
.o_account_report_column_value tr > td.number {
border-left: 1px solid var(--AccountFinancial-border-color, #bbb);
}
}
//izi
.izi_view {
.izi_dashboard_filter_title span {
background: #00796B;
}
.izi_dashboard_filter {
color: #00796B;
border: 1px solid #00796B;
}
.izi_dashboard_filter_content .dropdown-toggle {
color: #00796B;
}
.izi_btn.izi_btn_wpb {
border-color: #00796B;
color: #00796B;
}
.izi_btn.izi_btn_wpb:hover,
.izi_btn.izi_btn_wpb:not(:disabled):not(.disabled):active,
.izi_btn.izi_btn_wpb:not(:disabled):not(.disabled).active,
.show > .izi_btn.izi_btn_wpb.dropdown-toggle {
background-color: #00796B;
border-color: #00796B;
}
/* wlp - White Light Purple*/
.izi_btn.izi_btn_wlp {
color: #00796B;
}
.izi_btn.izi_btn_wlp:hover,
.izi_btn.izi_btn_wlp:not(:disabled):not(.disabled):active,
.izi_btn.izi_btn_wlp:not(:disabled):not(.disabled).active,
.show > .izi_btn.izi_btn_wlp.dropdown-toggle {
color: #00796B;
}
}

View File

@@ -0,0 +1,25 @@
// 编辑模式默认 input下方border 有颜色
.o_form_view {
.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) {
--o-input-border-color: #{map-get($grays, '200')};
}
}
}
.o_form_view:not(.o_field_highlight) {
.o_form_view_container {
.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_dialog_container {
.o_form_view: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')};
}
}
}

View File

@@ -0,0 +1,22 @@
//网站的 oe_structure_header_contact_1 滚动时不可见
.o_header_affixed .oe_structure_solo {
display: none;
}
//小屏时,顶部高度为 30px
//form
@media (max-width: 768px) {
header {
.navbar-brand.logo img {
height: 40px;
}
.navbar {
padding-top: 0;
padding-bottom: 0;
}
}
.o_header_affixed.o_header_is_scrolled .navbar-brand img {
height: 40px;
}
}

View File

@@ -0,0 +1,11 @@
.o_home_menu_background, .o_web_client.o_home_menu_background {
background: {
size: cover;
attachment: fixed;
color: var(--homeMenu-bg-color, #00463e);
image: var(--homeMenu-bg-image,
linear-gradient(to right bottom, #00796B, #00463e),
url("/app_web_enterprise/static/src/img/home-menu-bg-overlay.svg")
);
}
}

View File

@@ -0,0 +1,12 @@
$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

@@ -0,0 +1,3 @@
$o-enterprise-color: #00796B !default;
$o-brand-odoo: $o-enterprise-color !default;

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<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">
<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()">
<i class="o_menu_toggle_icon text-primary fa fa-2x fa-opera" style="padding-right:8px;" role="img"/>
<img
t-if="currentApp &amp;&amp; currentApp.webIconData"
t-att-src="currentApp.webIconData"
class="o_menu_brand_icon d-none d-lg-inline position-absolute start-0 h-100 ps-1 ms-2"
t-att-alt="currentApp.name"
t-ref="appIcon"/>
<span
t-if="currentApp"
t-esc="currentApp.name"
class="o_menu_brand d-none d-md-flex ms-3 pe-0"/>
</a>
</xpath>
</t>
<!-- 菜单有下拉箭头, owl的在 web.NavBar 首行用 MenuDropdown 下拉的用 DropdownItem -->
<!-- owl NavBar-->
<!-- <t t-name="app_web_enterprise.NavBar.SectionsMenu" t-inherit="web.NavBar.SectionsMenu" t-inherit-mode="extension">-->
<!-- <xpath expr="//MenuDropdown" position="attributes">-->
<!-- <attribute name="showCaret">true</attribute>-->
<!-- </xpath>-->
<!-- </t>-->
<!-- <t t-name="app_web_enterprise.NavBar.SectionsMenu.Dropdown.MenuSlot" t-inherit="web.NavBar.SectionsMenu.Dropdown.MenuSlot" t-inherit-mode="extension">-->
<!-- <xpath expr="//DropdownItem[1]" position="attributes">-->
<!-- <attribute name="showCaret">true</attribute>-->
<!-- </xpath>-->
<!-- </t>-->
</templates>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<!-- <t t-extend="HomeMenu.Content">-->
<!-- <t t-jquery=".o_home_menu_footer" t-operation="inner">-->
<!-- <img src='/web/binary/company_logo' alt="Logo"/>-->
<!-- </t>-->
<!-- </t>-->
</templates>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<!-- tip用 *-->
<t t-name="app_web_enterprise.FormLabel" t-inherit="web.FormLabel" t-inherit-mode="extension">
<xpath expr="//label" position="replace">
<label class="o_form_label" t-att-for="props.id" t-att-class="className" >
<t t-esc="props.string"/>
<sup class="btn-link p-1" t-if="hasTooltip" t-att="{'data-tooltip-template': 'web.FieldTooltip', 'data-tooltip-info': tooltipInfo, 'data-tooltip-touch-tap-to-show': 'true'}">*</sup>
</label>
</xpath>
</t>
<!-- 更紧凑,先不处理 保存增加字样-->
<!-- <t t-name="app_web_enterprise.FormStatusIndicator" t-inherit="web.FormStatusIndicator" t-inherit-mode="extension">-->
<!-- <xpath expr="//i[hasclass('fa-cloud-upload')]" position="after">-->
<!-- Save-->
<!-- </xpath>-->
<!-- <xpath expr="//i[hasclass('fa-undo')]" position="after">-->
<!-- Discard-->
<!-- </xpath>-->
<!-- </t>-->
<!-- 17不需要默认就是创建移到左边-->
<!-- <t t-name="app_web_enterprise.FormControlPanel" t-inherit="web.FormControlPanel" t-inherit-mode="extension">-->
<!-- <xpath expr="//div[hasclass('o_cp_bottom_right')]//t[3]" position="replace"/>-->
<!--&lt;!&ndash; <xpath expr="//t[t-slot='control-panel-create-button']" position="replace"/>&ndash;&gt;-->
<!--&lt;!&ndash; <xpath expr="//div[hasclass('o_cp_top_left')]" position="replace"/>&ndash;&gt;-->
<!-- <xpath expr="//div[hasclass('o_cp_top_left')]" position="inside">-->
<!-- <t t-slot="control-panel-create-button" />-->
<!-- </xpath>-->
<!-- </t>-->
</templates>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-inherit="web.res_config_edition" t-inherit-mode="extension">
<xpath expr="//h3" position="replace">
<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)
</h3>
</xpath>
</t>
</templates>