summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorjeffery CHEN fan <jeffery9@gmail.com>2018-08-26 09:58:47 +0800
committerMartin Trigaux <mat@odoo.com>2018-09-14 16:06:41 +0200
commitc3f0915b2b49d100257a1ac0f20d56beb3307d0d (patch)
tree9ee997d8d4dd6401ee83c11d21138b0eb4b6f2d2 /addons
parent9c77066f345360429a0920ca4d17af1f84a7ebea (diff)
[FIX] l10n_cn: move china city data into separate module
Changes made at #23879 changed the dependency of l10n_cn to include a large list of cities. Move to a different module to make the l10n_cn more lightweight. Closes #26592
Diffstat (limited to 'addons')
-rw-r--r--addons/l10n_cn/__manifest__.py11
-rw-r--r--addons/l10n_cn_city/__init__.py2
-rw-r--r--addons/l10n_cn_city/__manifest__.py21
-rw-r--r--addons/l10n_cn_city/data/res_city_data.xml (renamed from addons/l10n_cn/data/res_city_data.xml)0
-rw-r--r--addons/l10n_cn_city/static/description/icon.pngbin0 -> 967 bytes
5 files changed, 28 insertions, 6 deletions
diff --git a/addons/l10n_cn/__manifest__.py b/addons/l10n_cn/__manifest__.py
index f918b90461e..f3283a73803 100644
--- a/addons/l10n_cn/__manifest__.py
+++ b/addons/l10n_cn/__manifest__.py
@@ -15,18 +15,17 @@
'maintainer': 'jeff@osbzr.com',
'website': 'http://openerp-china.org',
'description': """
-Include those data/包含以下数据
-===============================
+Includes the following data for the Chinese localization
+========================================================
- Account Type/科目类型
+Account Type/科目类型
- State Data/省份数据
+State Data/省份数据
""",
- 'depends': ['base', 'account', 'l10n_multilang','base_address_city'],
+ 'depends': ['base', 'account', 'l10n_multilang'],
'data': [
'data/res_country_state_data.xml',
- 'data/res_city_data.xml',
'data/account_account_type_data.xml',
'data/account_tax_group_data.xml',
],
diff --git a/addons/l10n_cn_city/__init__.py b/addons/l10n_cn_city/__init__.py
new file mode 100644
index 00000000000..67dee8c60db
--- /dev/null
+++ b/addons/l10n_cn_city/__init__.py
@@ -0,0 +1,2 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
diff --git a/addons/l10n_cn_city/__manifest__.py b/addons/l10n_cn_city/__manifest__.py
new file mode 100644
index 00000000000..48721610d88
--- /dev/null
+++ b/addons/l10n_cn_city/__manifest__.py
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+# Copyright (C) 2018-now jeffery9@gmail.com
+
+{
+ 'name': 'China - City Data',
+ 'version': '1.8',
+ 'category': 'Localization',
+ 'author': 'Jeffery Chen Fan<jeffery9@gmail.com>',
+ 'description': """
+Includes the following data for the Chinese localization
+========================================================
+
+City Data/城市数据
+
+ """,
+ 'depends': ['l10n_cn','base_address_city'],
+ 'data': [
+ 'data/res_city_data.xml',
+ ],
+}
diff --git a/addons/l10n_cn/data/res_city_data.xml b/addons/l10n_cn_city/data/res_city_data.xml
index e5d23bf19a1..e5d23bf19a1 100644
--- a/addons/l10n_cn/data/res_city_data.xml
+++ b/addons/l10n_cn_city/data/res_city_data.xml
diff --git a/addons/l10n_cn_city/static/description/icon.png b/addons/l10n_cn_city/static/description/icon.png
new file mode 100644
index 00000000000..ce5e1e12f7c
--- /dev/null
+++ b/addons/l10n_cn_city/static/description/icon.png
Binary files differ