update my app

This commit is contained in:
ivan deng
2023-02-13 19:46:09 +08:00
parent 60d8335b3f
commit d80a027f35
23 changed files with 408 additions and 0 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,117 @@
//输入焦点时有颜色
.o_web_client input:focus,
.o_web_client textarea:focus,
.o_web_client select:focus {
border-color: $o-brand-primary;
font-weight: bold;
}
//菜单搜索常见
.o_menu_search {
&.o_bar_hidden {
opacity: 0.9;
}
}
//主菜单加箭头
.dropdown-menu .dropdown-header {
&::after {
display: inline-block;
width: 0;
height: 0;
margin-left: 0.255em;
vertical-align: 0.255em;
content: "";
border-top: 0.3em solid;
border-right: 0.3em solid transparent;
border-bottom: 0;
border-left: 0.3em solid transparent;
}
}
//列表左右显示边框
.o_list_view .table-responsive .o_list_table > thead > tr:first-child > th {
border-left: 1px solid #dfdfdf;;
border-right: 1px solid #dfdfdf;;
}
//内容显示边框
.o_list_view .table-responsive .o_list_table .o_data_row > .o_data_cell {
border-left: 1px solid #dee2e6;
border-right: 1px solid #dee2e6;
}
.o_list_view .table-responsive .o_list_table .o_data_row:not(.o_selected_row) > .o_data_cell:not(.o_readonly_modifier):not(:last-child) {
border-left: 1px solid #dee2e6;
border-right: 1px solid #dee2e6;
}
//选择列icon避免被滚动条挡
.o_content > .o_list_view > .table-responsive > .table .o_optional_columns_dropdown_toggle {
padding: 8px 20px 8px 10px;
}
.o_list_view .table-responsive .o_optional_columns_dropdown_toggle {
padding: 0 20px 0 5px;
}
.o_view_controller {
.o_controller_with_searchpanel .o_renderer_with_searchpanel {
overflow: unset;
}
}
// Notebooks ,form_view,pc端优化
.o_form_view .o_notebook > .o_notebook_headers > .nav.nav-tabs > .nav-item > .nav-link {
background-color: #f9f9f9;
&.active {
background-color: white;
border-top-width: 2px;
margin-top: -1px;
border-left-color: $o-enterprise-color;
border-left-width: 1px !important;
border-right-color: $o-enterprise-color;
border-right-width: 1px !important;
border-top-left-radius: 1px;
border-top-right-radius: 1px;
}
&:hover, &:focus, &:active {
background-color: white;
}
}
// Notebooks ,form_view,移动端优化
@media (max-width: 768px) {
.o_form_view .o_notebook > .o_notebook_headers > .nav.nav-tabs > .nav-item > .nav-link {
&.active {
margin-top: 0px;
margin-bottom: -1px;
padding-bottom: 0px;
}
}
}
// Kanban
.o_kanban_view.o_kanban_grouped .o_kanban_record {
margin-bottom: 4px;
}
// Graphfix抖动
.o_graph_controller {
.o_graph_renderer {
height: 99.5%;
}
}
//m2o字段只读情况下才可换行
.o_list_view .o_list_table tbody > tr > td.o_list_char.o_readonly_modifier {
white-space: pre-wrap!important;
}
.o_form_readonly .o_list_view .o_list_table .o_list_many2one {
white-space: pre-wrap!important;
}
//主菜单的 menu 图标
.o_main_navbar > .o_menu_toggle.fa-th:before {
content: "\f26a";
}

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/img/home-menu-bg-overlay.svg")
);
}
}

View File

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

View File

@@ -0,0 +1,16 @@
<?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>
<!-- 菜单有下拉箭头-->
<t t-inherit="web.Dropdown" t-inherit-mode="extension">
<xpath expr="//div[hasclass('o-dropdown')]" position="attributes">
<attribute name="t-att-class">{show: state.open}</attribute>
</xpath>
</t>
</templates>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-extend="res_config_edition">
<t t-jquery=".user-heading h3" t-operation="replace">
<h3>
odooApp <t t-esc="widget.server_version"/> (Sunpop.cn Edition)
</h3>
</t>
<t t-jquery=".user-o_web_settings_compact_subtitle small" t-operation="replace">
<small><a target="_blank" href="http://www.gnu.org/licenses/lgpl.html" style="text-decoration: underline;">GNU LGPL Licensed</a></small>
</t>
</t>
</templates>