update line sequence to paid release

This commit is contained in:
ivan deng
2021-11-26 12:53:29 +08:00
parent 90507ba3cd
commit 3b3d224f55
22 changed files with 377 additions and 0 deletions

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,80 @@
# -*- 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': '15.21.11.22',
'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',
],
'web._assets_primary_variables': [
'app_web_enterprise/static/src/scss/primary_variables.scss',
],
'web.assets_backend': [
'app_web_enterprise/static/src/scss/app_style.scss',
],
'web._assets_common_styles': [
('replace', 'web_enterprise/static/src/legacy/scss/ui.scss', 'app_web_enterprise/static/src/scss/ui.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,19 @@
///
/// This file regroups the variables that style odoo components.
/// They are available in every asset bundle.
///
// Customize color
$o-enterprise-color: #064475;
$o-enterprise-color: #475DA4;
$o-enterprise-color: #4187AE;
$o-enterprise-color: #00796B;
// Font sizes
$o-font-size-base-touch: 15px;
// Colors
$o-brand-odoo: $o-enterprise-color;
$o-brand-primary: $o-enterprise-primary-color;
$o-brand-secondary: #8f8f8f;
$o-brand-lightsecondary: $o-gray-100;
$o-main-text-color: #666666;

View File

@@ -0,0 +1,5 @@
.o_home_menu_background {
background: url(/app_web_enterprise/static/src/img/home-menu-bg-overlay.svg),
linear-gradient(to right bottom, #00796B, #00463e);
background-size: cover;
}

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-extend="Menu.sections">
<t t-jquery=".dropdown-toggle" t-operation="attributes">
<attribute name="class">dropdown-toggle o_menu_header_lvl_1</attribute>
</t>
</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>