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,6 @@
# -*- coding: utf-8 -*-
from . import controllers
from . import models
from . import ir
from . import res

View File

@@ -0,0 +1,106 @@
# -*- coding: utf-8 -*-
# Created on 2017-11-05
# author: 欧度智能https://www.odooai.cn
# email: 300883@qq.com
# resource of odooai
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# Odoo在线中文用户手册长期更新
# https://www.odooai.cn/documentation/user/10.0/zh_CN/index.html
# Odoo10离线中文用户手册下载
# https://www.odooai.cn/odoo10_user_manual_document_offline/
# Odoo10离线开发手册下载-含python教程jquery参考Jinja2模板PostgresSQL参考odoo开发必备
# https://www.odooai.cn/odoo10_developer_document_offline/
# description:
{
'name': "odoo18 Enterprise enhance Pack,企业版界面及操作增强",
'version': '24.08.19',
'author': 'odooai.cn',
'category': 'Extra tools',
'website': 'https://www.odooai.cn',
'live_test_url': 'https://demo.odooapp.cn',
'license': 'LGPL-3',
'sequence': 2,
'summary': """
Ui Enhance pack of odoo Enterprise version
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.
4. Table and report UI enhance(Grid View).
""",
'description': """
odoo enterprise version UI enhance.
欧度智能odooai.cn 的odoo模块。企业版界面增强。
1. Ui Enhance pack of odoo Enterprise version
odoo企业版界面增强套件更方便操作
2. Add dropdown arrow to parent menu group.
多级菜单中出现箭头。
3. Replace the odoo logo or url to your company in menu and page.
替换主菜单界面的logo为你公司的logo。
4. Add underline for input field.
在可编辑字段下方增加下划线,易于分辨。
5. Add grid line form list view. Easy to read list data.
为表格list增加行列分隔线易于看数据。
6. Add grid line to Account Reports. Easy to view Data.
为财务报表增加行列分隔线,易于看数据及对账。
11. Multi-language Support. Multi-Company Support.
12. Support Odoo 17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
13. Full Open Source.
==========
1.
2.
11. 多语言支持,多公司支持
12. Odoo 17,16,15,14,13,12, 企业版社区版在线SaaS.sh版等全版本支持
13. 代码完全开源
""",
'price': 68.00,
'currency': 'EUR',
'depends': [
'app_odoo_customize',
'web_enterprise',
# 'web_mobile'
],
'images': ['static/description/banner.png'],
'data': [
'views/webclient_templates.xml',
],
'assets': {
# 企业版变色注意这个是变量定义要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': [
('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'),
'app_web_enterprise/static/src/webclient/**/*.xml',
# 'app_web_enterprise/static/src/xml/**/*.xml',
# 'app_web_enterprise/static/src/xml/base.xml',
],
# 这里是改样式,要 after处理
'web.assets_common': [
('after', 'web/static/lib/jquery.ui/jquery-ui.css', 'app_web_enterprise/static/lib/jquery.ui/jquery-ui.css'),
('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/static/src/core/**/*', 'app_web_enterprise/static/src/xml/base.xml'),
('after', 'web_enterprise/static/src/webclient/home_menu/home_menu_background.scss', 'app_web_enterprise/static/src/scss/home_menu_background.scss'),
'app_web_enterprise/static/src/scss/app_style_website.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,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * app_web_enterprise
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e-20230320\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-04-22 18:11+0000\n"
"PO-Revision-Date: 2023-04-22 18:11+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"
#. module: app_web_enterprise
#. odoo-javascript
#: code:addons/app_web_enterprise/static/src/xml/form.xml:0
#, python-format
msgid "Discard"
msgstr "丢弃"
#. module: app_web_enterprise
#. odoo-javascript
#: code:addons/app_web_enterprise/static/src/xml/form.xml:0
#, python-format
msgid "Save"
msgstr "保存"

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: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@@ -0,0 +1,112 @@
<!--
# -*- coding: utf-8 -*-
##############################################################################
# Copyright (C) 2009~2024 odooAi.cn
##############################################################################
-->
<html>
<!-- begin title-->
<section class="oe_container container o_cc o_cc2">
<h2 class="text-center bg-warning text-white pt24 pb24">odoo Enterprise version enhance Pack</h2>
<h3 class="text-center">Replace odoo logo to your company logo</h3>
<h4 class="text-center">Make odoo Enterprise version better UI and flexible</h4>
</section>
<!-- end title-->
<!-- begin snapshot-->
<!-- quick demo-->
<section class="oe_container container">
<div class="oe_row oe_spaced" style="max-width: 95%;">
<div class="row">
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
<h2 class="mt32 mb32">More Powerful addons:
<a class="btn btn-primary mb16" href="http://www.odoo.com/apps/modules/browse?author=odooai.cn">odooai.cn Odoo Addons</a>
</h2>
<h3>Latest update: v17.24.08.17</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.Add underline for input field.</li>
<li class="mb8">4.Add grid line form list view. Easy to read list data.</li>
</ul>
</div>
<div class="oe_demo oe_screenshot img img-fluid mt32">
<img src="app_web_enterprise_01.jpg" style="border:1px solid black"/>
<br/>
</div>
<div class="oe_demo oe_screenshot img img-fluid mt32">
<img src="app_web_enterprise_03.jpg" style="border:1px solid black"/>
<br/>
</div>
<div class="oe_demo oe_screenshot img img-fluid 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 img-fluid">
<img src="set21.jpg" style="border:1px solid black"/>
<br/>
</div>
</div>
</div>
</div>
</section>
<section class="oe_container container">
<div class="oe_row oe_spaced">
<h2 class="bg-warning text-center pt8 pb8">5. Add grid line form list view. Easy to read list data.</h2>
<h4 class="oe_slogan"> </h4>
<div class="oe_demo oe_screenshot img img-fluid">
<img src="b04.png"/>
</div>
</div>
</section>
<section class="oe_container container">
<div class="oe_row oe_spaced">
<h2 class="bg-warning text-center pt8 pb8">6. Add grid line to Account Reports. Easy to view Data.</h2>
<h4 class="oe_slogan"> </h4>
<div class="oe_demo oe_screenshot img img-fluid">
<img src="b05.png"/>
</div>
</div>
</section>
<!-- end quick demo-->
<section class="container oe_dark">
<div class="oe_row oe_spaced text-center">
<div class="row">
<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:odoo@china.com"><span
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
<i class="fa fa-envelope"></i> odoo@china.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.odooai.cn</h4>
</div>
</div>
</div>
</section>

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@@ -0,0 +1,3 @@
.ui-widget {
font-size: 1.5em;
}

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>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- 企业版变色 -->
<template id="app_layout" inherit_id="web.layout" name="app Web layout">
<xpath expr="//meta[last()]" position="after">
<meta name="theme-color" content="#00796B"/>
<meta name="mobile-web-app-capable" content="yes"/>
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#00796B"/>
<meta name="msapplication-TileColor" content="#00796B"/>
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="theme-color" content="#00796B" media="(prefers-color-scheme: light)"/>
<meta name="theme-color" content="#242733" media="(prefers-color-scheme: dark)"/>
</xpath>
</template>
<!-- <template id="replace_theme_color" name="Replace theme color" inherit_id="web.webclient_bootstrap">-->
<!-- <xpath expr="//meta[@name='theme-color']" position="replace">-->
<!-- <meta name="theme-color" content="#875A7B"/>-->
<!-- &lt;!&ndash; Windows Phone &ndash;&gt;-->
<!-- <meta name="msapplication-navbutton-color" content="#00796B"/>-->
<!-- &lt;!&ndash; iOS Safari &ndash;&gt;-->
<!-- <meta name="apple-mobile-web-app-capable" content="yes"/>-->
<!-- <meta name="theme-color" content="#875A7B" media="(prefers-color-scheme: light)"/>-->
<!-- <meta name="theme-color" content="#242733" media="(prefers-color-scheme: dark)"/>-->
<!-- </xpath>-->
<!-- </template>-->
</odoo>