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

@@ -32,5 +32,41 @@
<!-- <record id="base.grant_menu_access" model="ir.actions.act_window">-->
<!-- <field name="context">{'ir.ui.menu.full_list': True, 'search_default_top_menu': 1}</field>-->
<!-- </record>-->
<!-- <record id="base.grant_menu_access" model="ir.actions.act_window">-->
<!-- <field name="context">{'ir.ui.menu.full_list': True, 'search_default_top_menu': 1}</field>-->
<!-- </record>-->
<menuitem
id="menu_app_group"
name="odooApp"
parent="base.menu_administration"
sequence="1"
groups="base.group_system"/>
<menuitem
id="menu_app_theme_config"
parent="menu_app_group"
sequence="1"
action="action_app_theme_config"
groups="base.group_system"/>
<menuitem
id="menu_ir_cron"
name="Scheduled Actions"
parent="menu_app_group"
sequence="91"
action="base.ir_cron_act"
groups="base.group_system"/>
<!--增加导入Demo数据-->
<menuitem
id="menu_app_demo_data"
parent="menu_app_group"
sequence="92"
action="base.demo_force_install_action"
groups="base.group_system"/>
<menuitem
id="menu_ir_config_list"
name="System Parameters"
parent="menu_app_group"
sequence="93"
action="base.ir_config_list_action"
groups="base.group_system"/>
</data>
</odoo>

View File

@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
from . import controllers
from . import models
from . import ir
from . import res

View File

@@ -0,0 +1,85 @@
# -*- coding: utf-8 -*-
# Created on 2017-11-05
# author: 广州尚鹏https://www.sunpop.cn
# email: 300883@qq.com
# resource of Sunpop
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# Odoo在线中文用户手册长期更新
# https://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html
# Odoo10离线中文用户手册下载
# https://www.sunpop.cn/odoo10_user_manual_document_offline/
# Odoo10离线开发手册下载-含python教程jquery参考Jinja2模板PostgresSQL参考odoo开发必备
# https://www.sunpop.cn/odoo10_developer_document_offline/
# description:
{
'name': "App web enterprise enhance,企业版界面增强",
'version': '16.23.02.13',
'author': 'Sunpop.cn',
'category': 'Base',
'website': 'https://www.sunpop.cn',
'license': 'LGPL-3',
'sequence': 2,
'summary': """
odoo enterprise version UI theme enhance.
1. Add dropdown arrow to parent menu.
2. Replace the odoo logo to your company logo in main menu.
3. Alway show search in main menu.
""",
'description': """
odoo enterprise version UI enhance.
广州尚鹏Sunpop.cn 的odoo模块。企业版界面增强。
1. Add dropdown arrow to parent menu.
多级菜单中出现箭头。
2. Replace the odoo logo or url to your company in menu and page.
替换主菜单界面的logo为你公司的logo。
3. Alway show search in main menu.
在主菜单界面让搜索可见。
4. Fix view bug like graph shake.
修正原生样式bug如Graph会抖动。
""",
'price': 68.00,
'currency': 'EUR',
'depends': [
'web_enterprise',
# 'web_mobile'
],
'images': [],
'data': [
],
'assets': {
'web.assets_qweb': [
'app_web_enterprise/static/src/xml/*.xml',
],
# 企业版变色注意这个是变量定义要before
'web._assets_primary_variables': [
('before', 'web_enterprise/static/src/scss/primary_variables.scss', 'app_web_enterprise/static/src/scss/primary_variables.scss'),
],
# 'web.assets_backend': [
# 'app_web_enterprise/static/src/scss/app_style.scss',
# ],
# 这里是改样式,要 after处理
'web.assets_common': [
('after', 'web_enterprise/static/src/webclient/home_menu/home_menu_background.scss', 'app_web_enterprise/static/src/scss/home_menu_background.scss'),
],
'web.assets_frontend': [
('after', 'web_enterprise/static/src/webclient/home_menu/home_menu_background.scss', 'app_web_enterprise/static/src/scss/home_menu_background.scss'),
],
},
# 'demo': [
# ],
# 'test': [
# ],
'images': ['static/description/app_web_enterprise_03.jpg'],
'post_load': None,
'post_init_hook': None,
'installable': True,
'application': True,
'auto_install': True,
}

View File

@@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@@ -0,0 +1,14 @@
# Translation of Odoo Server.
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-08 14:28+0000\n"
"PO-Revision-Date: 2018-01-08 14:28+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

View File

@@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-

View File

@@ -0,0 +1 @@
# -*- coding: utf-8 -*-

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

View File

@@ -0,0 +1,76 @@
<section class="oe_container">
<div class="oe_row oe_spaced" style="max-width: 95%;">
<div class="oe_span12">
<h2 class="oe_slogan">App Web Enterprise Enhance</h2>
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
<h1 class="mt32 mb32">More Powerful addons:
<a class="btn btn-primary mb16" href="http://www.odoo.com/apps/modules/browse?author=Sunpop.cn">Supop.cn Odoo Addons</a>
</h1>
<h3>Lastest update: v15.21.11.23</h3>
<p>This moduld allows user to . </p>
<ul>
<li class="mb8">1.Add dropdown arrow to parent menu.</li>
<li class="mb8">2.Replace the odoo logo or url to your company in menu and page.</li>
<li class="mb8">3.Alway show search in main menu.</li>
</ul>
</div>
<div class="oe_demo oe_screenshot mt32">
<img src="app_web_enterprise_01.jpg" style="border:1px solid black"/>
<br/>
</div>
<div class="oe_demo oe_screenshot mt32">
<img src="app_web_enterprise_02.jpg" style="border:1px solid black"/>
<br/>
</div>
<div class="oe_demo oe_screenshot mt32">
<img src="app_web_enterprise_03.jpg" style="border:1px solid black"/>
<br/>
</div>
<div class="oe_demo oe_screenshot mt32">
<img src="b03.png" style="border:1px solid black"/>
<br/>
</div>
<div class="oe_row oe_spaced" style="max-width: 95%;">
<div class="oe_demo"
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
<h2 class='oe_mt32'>Customize Module Url(eg. Enterprise).</h2>
</div>
<div class="oe_demo oe_screenshot">
<img src="set21.jpg" style="border:1px solid black"/>
<br/>
</div>
</div>
</div>
</div>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced text-center">
<div class="oe_span12">
<h2 class="oe_slogan">Technical Help & Support</h2>
</div>
<div class="col-md-12 pad0">
<div class="oe_mt16">
<p><h4>
For any type of technical help & support requests, Feel free to contact us</h4></p>
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:guohuadeng@hotmail.com"><span
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
<i class="fa fa-envelope"></i> guohuadeng@hotmail.com</a>
<p><h4>
Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)</h4></p>
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:300883@qq.com"><span
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
<i class="fa fa-envelope"></i> 300883@qq.com</a>
</div>
<div class="oe_mt16">
<h4>
Visit our website for more support.</h4>
<h4>https://www.sunpop.cn</h4>
</div>
</div>
</div>
</section>

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

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>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="_assets_backend" name="app_web_enterprise assets backend" inherit_id="web.assets_backend">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/app_web_enterprise/static/src/scss/app_style.scss"/>
</xpath>
</template>
<!-- 企业版变色 -->
<template id="_app_assets_primary_variables" inherit_id="web_enterprise._assets_primary_variables" priority="15">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/app_web_enterprise/static/src/scss/primary_variables.scss"/>
</xpath>
</template>
<template id="app_assets_common" name="app_web_enterprise assets common" inherit_id="web_enterprise.assets_common">
<xpath expr="//link[@href='/web_enterprise/static/src/scss/ui.scss']" position="replace">
<link rel="stylesheet" type="text/scss" href="/app_web_enterprise/static/src/scss/ui.scss"/>
</xpath>
</template>
</odoo>