diff --git a/app_base_chinese/__init__.py b/app_base_chinese/__init__.py
new file mode 100644
index 00000000..b801727f
--- /dev/null
+++ b/app_base_chinese/__init__.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+
+from .hooks import pre_init_hook
+from . import controllers
+from . import models
+from . import ir
+from . import res
\ No newline at end of file
diff --git a/app_base_chinese/__manifest__.py b/app_base_chinese/__manifest__.py
new file mode 100644
index 00000000..a4fb3ccb
--- /dev/null
+++ b/app_base_chinese/__manifest__.py
@@ -0,0 +1,64 @@
+# -*- coding: utf-8 -*-
+
+# Created on 2018-11-05
+# author: 广州尚鹏,http://www.sunpop.cn
+# email: 300883@qq.com
+# resource of Sunpop
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+
+# Odoo在线中文用户手册(长期更新)
+# http://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html
+
+# Odoo10离线中文用户手册下载
+# http://www.sunpop.cn/odoo10_user_manual_document_offline/
+# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备)
+# http://www.sunpop.cn/odoo10_developer_document_offline/
+# description:
+
+
+{
+ 'name': "App base chinese",
+ 'version': '11.0.10.31',
+ 'author': 'Sunpop.cn',
+ 'category': 'Base',
+ 'website': 'http://www.sunpop.cn',
+ 'license': 'LGPL-3',
+ 'sequence': 2,
+ 'summary': """
+ Chinese enhance. Out of the box use in china.
+ Set all chinese default value.
+ Default country, timezone, currency, partner...
+ """,
+ 'description': """
+ odoo Chinese enhance. 中国化增强-基础
+ 1. 中文默认值,如国家、时区、货币等。处理模块 base, product.
+ 2. 中文演示数据(只有demo模式才加载)
+ """,
+ 'pre_init_hook': 'pre_init_hook',
+ 'depends': [
+ 'product',
+ 'l10n_cn'
+ ],
+ 'images': [],
+ 'data': [
+ 'views/product_category_views.xml',
+ 'data/ir_value_data.xml',
+ 'data/ir_sequence_data.xml',
+ 'data/base_data.xml',
+ 'data/res_currency_data.xml',
+ 'data/product_data.xml',
+ ],
+ 'demo': [
+ ],
+ 'test': [
+ ],
+ 'css': [
+ ],
+ 'qweb': [
+ ],
+ 'js': [
+ ],
+ 'installable': True,
+ 'application': True,
+ 'auto_install': True,
+}
diff --git a/app_base_chinese/controllers/__init__.py b/app_base_chinese/controllers/__init__.py
new file mode 100644
index 00000000..40a96afc
--- /dev/null
+++ b/app_base_chinese/controllers/__init__.py
@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-
diff --git a/app_base_chinese/data/base_data.xml b/app_base_chinese/data/base_data.xml
new file mode 100644
index 00000000..c98925df
--- /dev/null
+++ b/app_base_chinese/data/base_data.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+ 广州尚鹏
+
+
+
+
+ 广州尚鹏
+
+
+
+ 超管
+ oa@sunpop.cn
+
+
+
diff --git a/app_base_chinese/data/ir_sequence_data.xml b/app_base_chinese/data/ir_sequence_data.xml
new file mode 100644
index 00000000..015b7209
--- /dev/null
+++ b/app_base_chinese/data/ir_sequence_data.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ 产品目录常规编号规则
+ product.category.seq.normal
+ CAT
+ 4
+ True
+
+
+
diff --git a/app_base_chinese/data/ir_value_data.xml b/app_base_chinese/data/ir_value_data.xml
new file mode 100644
index 00000000..557affeb
--- /dev/null
+++ b/app_base_chinese/data/ir_value_data.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ "Asia/Shanghai"
+
+
+
+
+ "inbox"
+
+
+
+
+ "product"
+
+
+
diff --git a/app_base_chinese/data/product_data.xml b/app_base_chinese/data/product_data.xml
new file mode 100644
index 00000000..4ed14751
--- /dev/null
+++ b/app_base_chinese/data/product_data.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ 全部
+
+
+ 可销售
+
+
+
+
+ 公斤
+
+
+ 吨
+
+
+
+
diff --git a/app_base_chinese/data/res_currency_data.xml b/app_base_chinese/data/res_currency_data.xml
new file mode 100644
index 00000000..d80d7862
--- /dev/null
+++ b/app_base_chinese/data/res_currency_data.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 元
+ 分
+ before
+
+
+
diff --git a/app_base_chinese/demo/base_demo.xml b/app_base_chinese/demo/base_demo.xml
new file mode 100644
index 00000000..89c6ac05
--- /dev/null
+++ b/app_base_chinese/demo/base_demo.xml
@@ -0,0 +1,90 @@
+
+
+
+
+
+ Demo User
+
+
+ demo@yourcompany.example.com
+ YourCompany
+ Avenue des Dessus-de-Lives, 2
+ Namur (Loyers)
+ 5101
+
+
+
+
+ 60-16-13 31926819
+ bank
+
+
+
+
+ YourCompany
+ YourCompany
+ 1725 Slough Ave.
+ Scranton
+ 18540
+
+
+ +1 555 123 8069
+ info@yourcompany.example.com
+ www.example.com
+
+
+
+
+ YourCompany
+ standard
+
+
+
+
+ demo
+ demo
+ --
+Mr Demo
+
+
+
+
+
+
+ YourCompany
+ 215 Vine St
+ Scranton
+ 18503
+
+
+ +1 555-555-5555
+ admin@yourcompany.example.com
+ Europe/Brussels
+
+
+
+
+
+
+ Demo Portal User
+ demo.portal@yourcompany.example.com
+
+
+ Vivegnis
+ 4683
+
+ YourCompany
+ Rue Cesar de Paepe, 43
+
+
+
+ portal
+ portal
+ --
Mr Demo Portal]]>
+
+
+
+
+
+
+
+
diff --git a/app_base_chinese/demo/product_demo.xml b/app_base_chinese/demo/product_demo.xml
new file mode 100644
index 00000000..2a8e9305
--- /dev/null
+++ b/app_base_chinese/demo/product_demo.xml
@@ -0,0 +1,738 @@
+
+
+
+
+
+
+ Internal
+
+
+
+ Services
+
+
+
+ Software
+
+
+
+ Physical
+
+
+
+ Prepaid Consulting
+
+ 40
+ 90
+ service
+
+
+ Example of product to invoice on order.
+ SERV_ORDER
+
+
+
+ Cost-plus Contract
+
+ 200.0
+ 180.0
+ service
+
+
+ SERV_DEL
+
+
+
+ External Audit
+
+ 160
+ 180
+ service
+
+
+ Example of products to invoice based on cost.
+ SERV_COST
+
+
+
+ Switch, 24 ports
+
+ 55.0
+ 70.0
+ consu
+
+
+ PROD_DEL
+
+
+
+ Datacard
+
+ 35.0
+ 40.0
+ consu
+
+
+ PROD_DEL02
+
+
+
+ Zed+ Antivirus
+
+ 235.0
+ 280.0
+ consu
+
+
+ PROD_ORDER
+
+
+
+ GAP Analysis Service
+
+ 20.5
+ 30.75
+ service
+
+
+ Example of products to invoice based on delivery.
+
+
+
+ Support Services
+
+ 25.5
+ 38.25
+ service
+
+
+ Example of product to invoice based on delivery.
+
+
+
+
+ Computer SC234
+
+ 450.0
+ 300.0
+ consu
+
+
+ 17" LCD Monitor
Processor AMD 8-Core
+ PCSC234
+
+
+
+
+
+ Memory
+
+
+ 16 GB
+
+
+
+ 32 GB
+
+
+
+
+ Color
+
+
+ White
+
+
+
+ Black
+
+
+
+
+ Wi-Fi
+
+
+ 2.4 GHz
+
+
+
+
+ iPad Retina Display
+
+ 500.0
+ 750.0
+ consu
+
+
+ 7.9‑inch (diagonal) LED-backlit, 128Gb
Dual-core A5 with quad-core graphics
FaceTime HD Camera, 1.2 MP Photos
+ E-COM01
+
+
+
+ E-COM02
+
+
+
+
+ E-COM03
+
+
+
+
+ E-COM04
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 50.40
+
+
+
+ Bose Mini Bluetooth Speaker
+
+ 140.0
+ 247.0
+ consu
+
+
+ Bose's smallest portable Bluetooth speaker
+ E-COM05
+
+
+
+
+ Custom Computer (kit)
+
+ 600.0
+ 147.0
+ consu
+
+
+ Custom computer shipped in kit.
+ E-COM06
+
+
+ Parts Replacement
+
+ 600.0
+ 147.0
+ service
+
+
+
+ iPad Mini
+
+ 800.0
+ 320.0
+ consu
+
+
+ E-COM07
+ 0.330
+
+
+
+ Repair
+
+ 800.0
+ 320.0
+ service
+
+
+ Apple In-Ear Headphones
+
+ 70.0
+ 79.0
+ consu
+
+
+ E-COM08
+
+
+
+ iMac
+
+ 1299.0
+ 1799.0
+ consu
+
+
+ E-COM09
+ 9.54
+
+
+
+ Apple Wireless Keyboard
+
+ 10.0
+ 47.0
+ consu
+
+
+ E-COM10
+
+
+
+ Mouse, Optical
+
+ 12.50
+ 14
+ consu
+
+
+ E-COM11
+
+
+
+ iPod
+
+ 14
+ 16.50
+ consu
+
+
+ E-COM12
+
+
+
+ E-COM13
+
+
+
+
+ Cleaning
+
+ 14
+ 16.50
+ service
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 6.40
+
+
+
+
+
+ Mouse, Wireless
+
+ 18
+ 12.50
+ consu
+
+
+ M-Wir
+
+
+
+ RAM SR5
+
+ 78.0
+ 85.0
+ consu
+
+
+ RAM-SR5
+
+
+
+ Computer Case
+
+ 20.0
+ 25.0
+ consu
+
+
+ C-Case
+
+
+
+ HDD SH-1
+
+ 860.0
+ 975.0
+ consu
+
+
+ HDD-SH1
+
+
+
+ Motherboard I9P57
+
+ 1700.0
+ 1950.0
+ consu
+
+
+ MBi9
+
+
+ Processor Core i5 2.70 Ghz
+
+ 2010.0
+ 2100.0
+ consu
+
+
+ CPUi5
+
+
+
+ Graphics Card
+
+ 876.0
+ 885.0
+ consu
+
+
+ CARD
+
+
+
+ Laptop E5023
+
+ 2870.0
+ 2950.0
+ consu
+
+
+ 17" Monitor, 4GB RAM
Standard-1294P Processor
+ LAP-E5
+
+
+
+ Laptop Customized
+
+ 3300.0
+ 3645.0
+ consu
+
+
+ Custom Laptop based on customer's requirement.
+ LAP-CUS
+
+
+
+ Basic Computer
+
+ 25000.0
+ 23500.0
+ consu
+
+
+ Dvorak keyboard
left-handed mouse
+ CONS_DEL03
+
+
+
+ Little server
+
+ 45000.0
+ 40000.0
+ consu
+
+
+ raid 1, 512ECC ram
+ CONS_DEL02
+
+
+
+ Server
+
+ 65000.0
+ 60000.0
+ consu
+
+
+ raid 10, 2048ECC ram
+ CONS_DEL01
+
+
+
+
+
+ Gold Membership
+ 180
+
+ service
+
+
+
+
+ Silver Membership
+
+ 80
+ service
+
+
+
+
+ Basic Membership
+
+ 40
+ service
+
+
+
+
+
+
+
+
+ 3
+ 1
+ 750
+
+
+
+
+
+ 3
+ 1
+ 790
+
+
+
+
+
+ 3
+ 3
+ 785
+
+
+
+
+
+ 3
+ 1
+ 65
+
+
+
+
+
+ 3
+ 1
+ 72
+
+
+
+
+
+ 2
+ 5
+ 1299
+
+
+
+
+
+ 4
+ 1
+ 1399
+
+
+
+
+
+ 2
+ 1
+ 12.50
+
+
+
+
+
+ 2
+ 1
+ 14
+
+
+
+
+
+ 5
+ 1
+ 78
+
+
+
+
+
+ 1
+ 1
+ 20
+
+
+
+
+
+ 3
+ 1
+ 860
+
+
+
+
+
+ 3
+ 1
+ 1700
+
+
+
+
+
+ 4
+ 5
+ 1720
+
+
+
+
+
+ 3
+ 1
+ 2010
+
+
+
+
+
+ 3
+ 1
+ 876
+
+
+
+
+
+ 8
+ 1
+ 2870
+
+
+
+
+
+ 4
+ 1
+ 390
+
+
+
+
+
+ 2
+ 12
+ 90
+
+
+
+
+
+ 4
+ 1
+ 66
+
+
+
+
+
+ 5
+ 1
+ 35
+
+
+
+
+
+ 7
+ 1
+ 55
+
+
+
+
+
+ 4
+ 0
+ 10
+
+
+
+
+
+ 10
+ 0
+ 3300
+
+
+
+
+
+ 3
+ 0
+ 12.50
+
+
+
+
+
+ 2
+ 0
+ 13.50
+
+
+
+ property_product_pricelist
+
+
+
+
+
+
+
+
diff --git a/app_base_chinese/demo/product_image_demo.xml b/app_base_chinese/demo/product_image_demo.xml
new file mode 100644
index 00000000..ab98b4a7
--- /dev/null
+++ b/app_base_chinese/demo/product_image_demo.xml
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app_base_chinese/demo/res_bank_demo.xml b/app_base_chinese/demo/res_bank_demo.xml
new file mode 100644
index 00000000..bd563fc6
--- /dev/null
+++ b/app_base_chinese/demo/res_bank_demo.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ ING
+ BBRUBEBB
+
+
+
+ Crelan
+ NICABEBB
+
+
+
+ CBC
+ CREGBEBB
+
+
+
+
diff --git a/app_base_chinese/demo/res_partner_demo.xml b/app_base_chinese/demo/res_partner_demo.xml
new file mode 100644
index 00000000..b5ead63c
--- /dev/null
+++ b/app_base_chinese/demo/res_partner_demo.xml
@@ -0,0 +1,251 @@
+
+
+
+
+
+
+ Partner
+
+
+
+ Vendor
+
+
+
+ Prospect
+
+
+
+ Employee
+
+
+
+ Gold
+
+
+
+
+ Silver
+
+
+
+
+ Bronze
+
+
+
+
+ IT Services
+
+
+
+
+ Consultancy Services
+
+
+
+ Components Buyer
+
+
+
+ Services
+
+
+
+ Office Supplies
+
+
+
+ Distributor
+
+
+
+ Manufacturer
+
+
+
+ Wholesaler
+
+
+
+ Retailer
+
+
+
+ Company Contact
+
+
+
+
+
+
+ ASUSTeK
+
+ 1
+
+ 1
+ Taipei
+ 106
+
+ 31 Hong Kong street
+ asusteK@yourcompany.example.com
+ (+886) (02) 4162 2023
+ http://www.asustek.com
+
+
+
+ Agrolait
+
+ 1
+ Wavre
+ 1300
+
+ 69 rue de Namur
+ agrolait@yourcompany.example.com
+ +32 10 588 558
+ http://www.agrolait.com
+
+
+
+ China Export
+ 1
+
+ 1
+ Shanghai
+ 200000
+
+
+ 52 Chop Suey street
+ chinaexport@yourcompany.example.com
+ +86 21 6484 5671
+ http://www.chinaexport.com/
+
+
+
+
+ Delta PC
+
+
+
+ 1
+ Fremont
+ 94538
+
+
+ 3661 Station Street
+ deltapc@yourcompany.example.com
+ +1 510 340 2385
+ http://www.distribpc.com/
+
+
+
+
+ The Jackson Group
+
+ 1
+ Miami
+ 33169
+
+
+ jackson@yourcompany.example.com
+ +1 786 525 0724
+ 3203 Lamberts Branch Road
+
+
+
+
+ Camptocamp
+
+ 1
+ 1
+ 1
+ Le Bourget du Lac
+ 73377
+ +33 4 49 23 44 54
+
+ 93, Press Avenue
+ camptocamp@yourcompany.example.com
+ http://www.camptocamp.com
+
+
+
+
+ Think Big Systems
+ 1
+
+ London
+ thinkbig@yourcompany.example.com
+ +1 857 349 3049
+
+ 89 Lingfield Tower
+ http://www.think-big.com
+
+
+
+
+ Tang Tsui
+
+ Service Manager
+ tang@asustek.com
+ 1
+
+
+
+ Joseph Walters
+
+ Store Manager
+ joseph.walters@asustek.com
+ 1
+
+
+
+ Richard Ellis
+
+ Production Supervisor
+ richard.ellis@deltapc.example.com
+ 1
+
+
+
+ James Miller
+
+ Electrical Supervisor
+ 1
+
+
+
+ Edward Foster
+
+ Sales Representative
+ efoster@seagate.com
+ 1
+
+
+
+ Arthur Gomez
+
+ Software Developer
+ 1
+
+
+
+ Julia Rivero
+
+ Technical Director
+ 1
+
+
+
+ Peter Mitchell
+
+ Store Manager
+ 1
+
+
+
+
+
diff --git a/app_base_chinese/demo/res_partner_demo.yml b/app_base_chinese/demo/res_partner_demo.yml
new file mode 100644
index 00000000..9fd892db
--- /dev/null
+++ b/app_base_chinese/demo/res_partner_demo.yml
@@ -0,0 +1,128 @@
+-
+ !record {model: 'res.partner', id: base.res_partner_address_3}:
+ name: Thomas Passot
+ parent_id: base.res_partner_2
+ function: Functional Consultant
+ email: thomas.passot@agrolait.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_4}:
+ name: Michel Fletcher
+ parent_id: base.res_partner_2
+ function: Analyst
+ email: michel.fletcher@agrolait.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_5}:
+ name: Chao Wang
+ parent_id: base.res_partner_3
+ function: Marketing Manager
+ email: chao.wang@chinaexport.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_10}:
+ name: David Simpson
+ parent_id: base.res_partner_3
+ function: Senior Consultant
+ email: david.simpson@epic.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_11}:
+ name: John M. Brown
+ parent_id: base.res_partner_3
+ function: Director
+ email: john.brown@epic.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_13}:
+ name: Charlie Bernard
+ parent_id: base.res_partner_4
+ function: Senior Associate
+ email: charlie.bernard@wealthyandsons.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_14}:
+ name: Jessica Dupont
+ parent_id: base.res_partner_4
+ function: Analyst
+ email: jessica.dupont@wealthyandsons.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_15}:
+ name: Phillipp Miller
+ parent_id: base.res_partner_12
+ function: Creative Director
+ email: phillipp.miller@mediapole.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_16}:
+ name: Ayaan Agarwal
+ parent_id: base.res_partner_12
+ function: Director
+ email: ayaan.agarwal@bestdesigners.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_17}:
+ name: Daniel Jackson
+ parent_id: base.res_partner_10
+ function: Managing Partner
+ email: daniel.jackson@jackson.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_18}:
+ name: William Thomas
+ parent_id: base.res_partner_10
+ function: Senior Consultant
+ email: william.jackson@jackson.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_22}:
+ name: Laith Jubair
+ parent_id: base.res_partner_2
+ function: Director
+ email: laith.jubair@axelor.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_24}:
+ name: Robert Anderson
+ parent_id: base.res_partner_4
+ function: System Analyst
+ email: robert.anderson@chamberworks.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_25}:
+ name: Jacob Taylor
+ parent_id: base.res_partner_3
+ function: Order Clerk
+ email: jacob.taylor@millennium.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_28}:
+ name: Benjamin Flores
+ parent_id: base.res_partner_12
+ function: Business Executive
+ email: benjamin.flores@nebula.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_30}:
+ name: Lucas Jones
+ parent_id: base.res_partner_18
+ function: Functional Consultant
+ email: lucas.jones@thinkbig.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_32}:
+ name: Robin Smith
+ parent_id: base.res_partner_4
+ function: Sales Manager
+ email: robin.smith@globalsolutions.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_33}:
+ name: Morgan Rose
+ parent_id: base.res_partner_4
+ function: Financial Manager
+ email: morgan.rose@globalsolutions.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_address_34}:
+ name: Kevin Clarke
+ parent_id: base.res_partner_4
+ function: Knowledge Manager
+ email: kevin.clarke@globalsolutions.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_main1}:
+ name: Mark Davis
+ customer: False
+ parent_id: base.main_partner
+ function: Chief Executive Officer (CEO)
+ email: mark.davis@yourcompany.example.com
+-
+ !record {model: 'res.partner', id: base.res_partner_main2}:
+ name: Roger Scott
+ customer: False
+ parent_id: base.main_partner
+ function: Chief Operations Officer (COO)
+ email: roger.scott@yourcompany.example.com
diff --git a/app_base_chinese/demo/res_partner_image_demo.xml b/app_base_chinese/demo/res_partner_image_demo.xml
new file mode 100644
index 00000000..541f38ea
--- /dev/null
+++ b/app_base_chinese/demo/res_partner_image_demo.xml
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app_base_chinese/hooks.py b/app_base_chinese/hooks.py
new file mode 100644
index 00000000..8700cb98
--- /dev/null
+++ b/app_base_chinese/hooks.py
@@ -0,0 +1,30 @@
+# -*- coding: utf-8 -*-
+
+# Created on 2017-11-22
+# author: 广州尚鹏,http://www.sunpop.cn
+# email: 300883@qq.com
+# resource of Sunpop
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+
+# Odoo在线中文用户手册(长期更新)
+# http://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html
+
+# Odoo10离线中文用户手册下载
+# http://www.sunpop.cn/odoo10_user_manual_document_offline/
+# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备)
+# http://www.sunpop.cn/odoo10_developer_document_offline/
+# description:
+
+from odoo import api, SUPERUSER_ID
+
+def pre_init_hook(cr):
+ """
+ 数据初始化,只在安装时执行,更新时不执行
+ """
+ try:
+ cr.execute("UPDATE product_product "
+ "SET default_code = '!!PR!!' || id "
+ "WHERE default_code IS NULL OR default_code = 'New';")
+ pass
+ except Exception as e:
+ raise Warning(e)
diff --git a/app_base_chinese/i18n/zh_CN.po b/app_base_chinese/i18n/zh_CN.po
new file mode 100644
index 00000000..f45db9f9
--- /dev/null
+++ b/app_base_chinese/i18n/zh_CN.po
@@ -0,0 +1,16 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * felive_home
+#
+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"
diff --git a/app_base_chinese/ir/__init__.py b/app_base_chinese/ir/__init__.py
new file mode 100644
index 00000000..40a96afc
--- /dev/null
+++ b/app_base_chinese/ir/__init__.py
@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-
diff --git a/app_base_chinese/models/__init__.py b/app_base_chinese/models/__init__.py
new file mode 100644
index 00000000..d488dbed
--- /dev/null
+++ b/app_base_chinese/models/__init__.py
@@ -0,0 +1,3 @@
+# -*- coding: utf-8 -*-
+
+from . import product_category
diff --git a/app_base_chinese/models/product_category.py b/app_base_chinese/models/product_category.py
new file mode 100644
index 00000000..8476e3ca
--- /dev/null
+++ b/app_base_chinese/models/product_category.py
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+
+# Created on 2017-11-28
+# author: 广州尚鹏,http://www.sunpop.cn
+# email: 300883@qq.com
+# resource of Sunpop
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+
+# Odoo在线中文用户手册(长期更新)
+# http://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html
+
+# Odoo10离线中文用户手册下载
+# http://www.sunpop.cn/odoo10_user_manual_document_offline/
+# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备)
+# http://www.sunpop.cn/odoo10_developer_document_offline/
+# description:
+
+from odoo import api, fields, models, exceptions, _
+
+class ProductCategory(models.Model):
+ _inherit = 'product.category'
+ _order = 'sequence, ref'
+
+ ref = fields.Char(u'唯一编码', index=True)
+ sequence = fields.Integer(u'排序', help="Determine the display order")
+
+ # 增加目录编号唯一检查
+ # _sql_constraints = [
+ # ('uniq_ref',
+ # 'unique(ref)',
+ # 'The reference must be unique'),
+ # ]
+
+ # 产品目录序号器,正常全部手工录入
+ @api.model
+ def create(self, vals):
+ if not vals.get('ref'):
+ vals['ref'] = self.env['ir.sequence'].next_by_code('product.category.seq.normal')
+ if vals.get('ref'):
+ vals['ref'] = vals['ref'].upper()
+ return super(ProductCategory, self).create(vals)
+
diff --git a/app_base_chinese/report/__init__.py b/app_base_chinese/report/__init__.py
new file mode 100644
index 00000000..633f8661
--- /dev/null
+++ b/app_base_chinese/report/__init__.py
@@ -0,0 +1,2 @@
+# -*- coding: utf-8 -*-
+
diff --git a/app_base_chinese/res/__init__.py b/app_base_chinese/res/__init__.py
new file mode 100644
index 00000000..40a96afc
--- /dev/null
+++ b/app_base_chinese/res/__init__.py
@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-
diff --git a/app_base_chinese/static/description/icon.png b/app_base_chinese/static/description/icon.png
new file mode 100644
index 00000000..4c57f611
Binary files /dev/null and b/app_base_chinese/static/description/icon.png differ
diff --git a/app_base_chinese/static/img/bg_background_template.jpg b/app_base_chinese/static/img/bg_background_template.jpg
new file mode 100644
index 00000000..be776b47
Binary files /dev/null and b/app_base_chinese/static/img/bg_background_template.jpg differ
diff --git a/app_base_chinese/static/img/logo_sample.png b/app_base_chinese/static/img/logo_sample.png
new file mode 100644
index 00000000..49090033
Binary files /dev/null and b/app_base_chinese/static/img/logo_sample.png differ
diff --git a/app_base_chinese/static/img/logo_white.png b/app_base_chinese/static/img/logo_white.png
new file mode 100644
index 00000000..84335cbf
Binary files /dev/null and b/app_base_chinese/static/img/logo_white.png differ
diff --git a/app_base_chinese/static/img/main_partner-image.png b/app_base_chinese/static/img/main_partner-image.png
new file mode 100644
index 00000000..1651b0c9
Binary files /dev/null and b/app_base_chinese/static/img/main_partner-image.png differ
diff --git a/app_base_chinese/static/img/membership_0-image.jpg b/app_base_chinese/static/img/membership_0-image.jpg
new file mode 100644
index 00000000..f9723384
Binary files /dev/null and b/app_base_chinese/static/img/membership_0-image.jpg differ
diff --git a/app_base_chinese/static/img/membership_1-image.jpg b/app_base_chinese/static/img/membership_1-image.jpg
new file mode 100644
index 00000000..ade87446
Binary files /dev/null and b/app_base_chinese/static/img/membership_1-image.jpg differ
diff --git a/app_base_chinese/static/img/membership_2-image.jpg b/app_base_chinese/static/img/membership_2-image.jpg
new file mode 100644
index 00000000..ed6f4118
Binary files /dev/null and b/app_base_chinese/static/img/membership_2-image.jpg differ
diff --git a/app_base_chinese/static/img/partner_root-image.jpg b/app_base_chinese/static/img/partner_root-image.jpg
new file mode 100644
index 00000000..72590f5c
Binary files /dev/null and b/app_base_chinese/static/img/partner_root-image.jpg differ
diff --git a/app_base_chinese/static/img/preview_background.png b/app_base_chinese/static/img/preview_background.png
new file mode 100644
index 00000000..6ab7ee46
Binary files /dev/null and b/app_base_chinese/static/img/preview_background.png differ
diff --git a/app_base_chinese/static/img/preview_boxed.png b/app_base_chinese/static/img/preview_boxed.png
new file mode 100644
index 00000000..758dc464
Binary files /dev/null and b/app_base_chinese/static/img/preview_boxed.png differ
diff --git a/app_base_chinese/static/img/preview_clean.png b/app_base_chinese/static/img/preview_clean.png
new file mode 100644
index 00000000..439082ce
Binary files /dev/null and b/app_base_chinese/static/img/preview_clean.png differ
diff --git a/app_base_chinese/static/img/preview_standard.png b/app_base_chinese/static/img/preview_standard.png
new file mode 100644
index 00000000..ef23a530
Binary files /dev/null and b/app_base_chinese/static/img/preview_standard.png differ
diff --git a/app_base_chinese/static/img/product_product_1-image.jpg b/app_base_chinese/static/img/product_product_1-image.jpg
new file mode 100644
index 00000000..7fc47569
Binary files /dev/null and b/app_base_chinese/static/img/product_product_1-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_10-image.jpg b/app_base_chinese/static/img/product_product_10-image.jpg
new file mode 100644
index 00000000..945dc04d
Binary files /dev/null and b/app_base_chinese/static/img/product_product_10-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_11-image.png b/app_base_chinese/static/img/product_product_11-image.png
new file mode 100644
index 00000000..974cea95
Binary files /dev/null and b/app_base_chinese/static/img/product_product_11-image.png differ
diff --git a/app_base_chinese/static/img/product_product_12-image.jpg b/app_base_chinese/static/img/product_product_12-image.jpg
new file mode 100644
index 00000000..85a5069f
Binary files /dev/null and b/app_base_chinese/static/img/product_product_12-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_13-image.jpg b/app_base_chinese/static/img/product_product_13-image.jpg
new file mode 100644
index 00000000..98e9f5e7
Binary files /dev/null and b/app_base_chinese/static/img/product_product_13-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_16-image.jpg b/app_base_chinese/static/img/product_product_16-image.jpg
new file mode 100644
index 00000000..06c5e1b9
Binary files /dev/null and b/app_base_chinese/static/img/product_product_16-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_17-image.jpg b/app_base_chinese/static/img/product_product_17-image.jpg
new file mode 100644
index 00000000..b7352a8c
Binary files /dev/null and b/app_base_chinese/static/img/product_product_17-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_2-image.jpg b/app_base_chinese/static/img/product_product_2-image.jpg
new file mode 100644
index 00000000..9bddee45
Binary files /dev/null and b/app_base_chinese/static/img/product_product_2-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_20-image.jpg b/app_base_chinese/static/img/product_product_20-image.jpg
new file mode 100644
index 00000000..664bdec9
Binary files /dev/null and b/app_base_chinese/static/img/product_product_20-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_22-image.jpg b/app_base_chinese/static/img/product_product_22-image.jpg
new file mode 100644
index 00000000..8db2f717
Binary files /dev/null and b/app_base_chinese/static/img/product_product_22-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_24-image.jpg b/app_base_chinese/static/img/product_product_24-image.jpg
new file mode 100644
index 00000000..14ea02c3
Binary files /dev/null and b/app_base_chinese/static/img/product_product_24-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_25-image.jpg b/app_base_chinese/static/img/product_product_25-image.jpg
new file mode 100644
index 00000000..37d77fe9
Binary files /dev/null and b/app_base_chinese/static/img/product_product_25-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_27-image.jpg b/app_base_chinese/static/img/product_product_27-image.jpg
new file mode 100644
index 00000000..65fdeaeb
Binary files /dev/null and b/app_base_chinese/static/img/product_product_27-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_3-image.jpg b/app_base_chinese/static/img/product_product_3-image.jpg
new file mode 100644
index 00000000..92f24ad5
Binary files /dev/null and b/app_base_chinese/static/img/product_product_3-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_4-image.png b/app_base_chinese/static/img/product_product_4-image.png
new file mode 100644
index 00000000..725b3dca
Binary files /dev/null and b/app_base_chinese/static/img/product_product_4-image.png differ
diff --git a/app_base_chinese/static/img/product_product_43-image.jpg b/app_base_chinese/static/img/product_product_43-image.jpg
new file mode 100644
index 00000000..3bab8a3f
Binary files /dev/null and b/app_base_chinese/static/img/product_product_43-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_46-image.jpg b/app_base_chinese/static/img/product_product_46-image.jpg
new file mode 100644
index 00000000..7ff6b9a1
Binary files /dev/null and b/app_base_chinese/static/img/product_product_46-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_5-image.jpg b/app_base_chinese/static/img/product_product_5-image.jpg
new file mode 100644
index 00000000..a10eba8d
Binary files /dev/null and b/app_base_chinese/static/img/product_product_5-image.jpg differ
diff --git a/app_base_chinese/static/img/product_product_5-image.png b/app_base_chinese/static/img/product_product_5-image.png
new file mode 100644
index 00000000..55d380c1
Binary files /dev/null and b/app_base_chinese/static/img/product_product_5-image.png differ
diff --git a/app_base_chinese/static/img/product_product_6-image.png b/app_base_chinese/static/img/product_product_6-image.png
new file mode 100644
index 00000000..5ad71a54
Binary files /dev/null and b/app_base_chinese/static/img/product_product_6-image.png differ
diff --git a/app_base_chinese/static/img/product_product_7-image.png b/app_base_chinese/static/img/product_product_7-image.png
new file mode 100644
index 00000000..e18c80dd
Binary files /dev/null and b/app_base_chinese/static/img/product_product_7-image.png differ
diff --git a/app_base_chinese/static/img/product_product_8-image.png b/app_base_chinese/static/img/product_product_8-image.png
new file mode 100644
index 00000000..5ac00bfb
Binary files /dev/null and b/app_base_chinese/static/img/product_product_8-image.png differ
diff --git a/app_base_chinese/static/img/product_product_9-image.png b/app_base_chinese/static/img/product_product_9-image.png
new file mode 100644
index 00000000..c8a5cf65
Binary files /dev/null and b/app_base_chinese/static/img/product_product_9-image.png differ
diff --git a/app_base_chinese/static/img/public_user-image.png b/app_base_chinese/static/img/public_user-image.png
new file mode 100644
index 00000000..e69de29b
diff --git a/app_base_chinese/static/img/res_partner_1-image.jpg b/app_base_chinese/static/img/res_partner_1-image.jpg
new file mode 100644
index 00000000..df71b44f
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_1-image.jpg differ
diff --git a/app_base_chinese/static/img/res_partner_10-image.jpg b/app_base_chinese/static/img/res_partner_10-image.jpg
new file mode 100644
index 00000000..b597ea17
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_10-image.jpg differ
diff --git a/app_base_chinese/static/img/res_partner_12-image.jpg b/app_base_chinese/static/img/res_partner_12-image.jpg
new file mode 100644
index 00000000..27b85e0e
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_12-image.jpg differ
diff --git a/app_base_chinese/static/img/res_partner_18-image.png b/app_base_chinese/static/img/res_partner_18-image.png
new file mode 100644
index 00000000..a58db29f
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_18-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_2-image.jpg b/app_base_chinese/static/img/res_partner_2-image.jpg
new file mode 100644
index 00000000..4a9ff1ac
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_2-image.jpg differ
diff --git a/app_base_chinese/static/img/res_partner_3-image.png b/app_base_chinese/static/img/res_partner_3-image.png
new file mode 100644
index 00000000..1183937b
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_3-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_4-image.png b/app_base_chinese/static/img/res_partner_4-image.png
new file mode 100644
index 00000000..8a656008
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_4-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_1-image.png b/app_base_chinese/static/img/res_partner_address_1-image.png
new file mode 100644
index 00000000..f3a4c47f
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_1-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_10-image.png b/app_base_chinese/static/img/res_partner_address_10-image.png
new file mode 100644
index 00000000..8bfa12b7
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_10-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_11-image.png b/app_base_chinese/static/img/res_partner_address_11-image.png
new file mode 100644
index 00000000..7b35d558
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_11-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_13-image.png b/app_base_chinese/static/img/res_partner_address_13-image.png
new file mode 100644
index 00000000..76522fb3
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_13-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_14-image.png b/app_base_chinese/static/img/res_partner_address_14-image.png
new file mode 100644
index 00000000..171022ee
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_14-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_15-image.png b/app_base_chinese/static/img/res_partner_address_15-image.png
new file mode 100644
index 00000000..ea0e5f49
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_15-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_16-image.png b/app_base_chinese/static/img/res_partner_address_16-image.png
new file mode 100644
index 00000000..82055c17
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_16-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_17-image.png b/app_base_chinese/static/img/res_partner_address_17-image.png
new file mode 100644
index 00000000..8fbf90c8
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_17-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_18-image.png b/app_base_chinese/static/img/res_partner_address_18-image.png
new file mode 100644
index 00000000..8dfe300e
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_18-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_2-image.png b/app_base_chinese/static/img/res_partner_address_2-image.png
new file mode 100644
index 00000000..3ca35173
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_2-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_24-image.png b/app_base_chinese/static/img/res_partner_address_24-image.png
new file mode 100644
index 00000000..7f176bee
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_24-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_25-image.png b/app_base_chinese/static/img/res_partner_address_25-image.png
new file mode 100644
index 00000000..e508b59d
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_25-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_27-image.png b/app_base_chinese/static/img/res_partner_address_27-image.png
new file mode 100644
index 00000000..3bcc8df8
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_27-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_28-image.png b/app_base_chinese/static/img/res_partner_address_28-image.png
new file mode 100644
index 00000000..12856052
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_28-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_30-image.png b/app_base_chinese/static/img/res_partner_address_30-image.png
new file mode 100644
index 00000000..7a8186b7
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_30-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_32-image.png b/app_base_chinese/static/img/res_partner_address_32-image.png
new file mode 100644
index 00000000..7da8761a
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_32-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_33-image.png b/app_base_chinese/static/img/res_partner_address_33-image.png
new file mode 100644
index 00000000..b56304c8
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_33-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_34-image.png b/app_base_chinese/static/img/res_partner_address_34-image.png
new file mode 100644
index 00000000..8725d743
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_34-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_4-image.png b/app_base_chinese/static/img/res_partner_address_4-image.png
new file mode 100644
index 00000000..fa0f846c
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_4-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_5-image.png b/app_base_chinese/static/img/res_partner_address_5-image.png
new file mode 100644
index 00000000..db074e86
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_5-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_address_7-image.png b/app_base_chinese/static/img/res_partner_address_7-image.png
new file mode 100644
index 00000000..d7996627
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_address_7-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_main1-image.png b/app_base_chinese/static/img/res_partner_main1-image.png
new file mode 100644
index 00000000..ca64a2d5
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_main1-image.png differ
diff --git a/app_base_chinese/static/img/res_partner_main2-image.png b/app_base_chinese/static/img/res_partner_main2-image.png
new file mode 100644
index 00000000..f056a0c3
Binary files /dev/null and b/app_base_chinese/static/img/res_partner_main2-image.png differ
diff --git a/app_base_chinese/static/img/user_demo-image.jpg b/app_base_chinese/static/img/user_demo-image.jpg
new file mode 100644
index 00000000..47ccb5c0
Binary files /dev/null and b/app_base_chinese/static/img/user_demo-image.jpg differ
diff --git a/app_base_chinese/views/product_category_views.xml b/app_base_chinese/views/product_category_views.xml
new file mode 100644
index 00000000..699d82c4
--- /dev/null
+++ b/app_base_chinese/views/product_category_views.xml
@@ -0,0 +1,44 @@
+
+
+
+
+
+ product.category.list.internal_type
+ product.category
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ product.category.form.internal_type
+ product.category
+
+
+
+
+
+
+
+
+
+
+ product.category.search.internal_type
+ product.category
+
+
+
+
+
+
+
+
+