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..480c7fa6 --- /dev/null +++ b/app_base_chinese/__manifest__.py @@ -0,0 +1,69 @@ +# -*- 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': '12.0.11.14', + '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. 客户加简称,地址显示中文化,客户编码显示优先 + 3. todo:中文演示数据(只有demo模式才加载) + + """, + 'pre_init_hook': 'pre_init_hook', + 'depends': [ + 'base', + 'product', + 'l10n_cn' + ], + 'images': ['static/description/banner.jpg'], + 'data': [ + 'views/res_partner_category_views.xml', + 'views/res_partner_views.xml', + 'data/ir_default_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': False, +} 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_default_data.xml b/app_base_chinese/data/ir_default_data.xml new file mode 100644 index 00000000..d01324e0 --- /dev/null +++ b/app_base_chinese/data/ir_default_data.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + "Asia/Shanghai" + + + + + "inbox" + + + + + "product" + + + 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/product_data.xml b/app_base_chinese/data/product_data.xml new file mode 100644 index 00000000..23e21456 --- /dev/null +++ b/app_base_chinese/data/product_data.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + 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..14d46a56 --- /dev/null +++ b/app_base_chinese/hooks.py @@ -0,0 +1,27 @@ +# -*- 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: + 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..d822b8a4 --- /dev/null +++ b/app_base_chinese/i18n/zh_CN.po @@ -0,0 +1,160 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * app_base_chinese +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0+e-20180915\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-11-04 16:22+0000\n" +"PO-Revision-Date: 2018-11-04 16:22+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_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form +msgid "(edit)" +msgstr "(编辑)" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form +msgid "Address" +msgstr "地址" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_res_partner_view_filter_customer +#: model:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form +msgid "City" +msgstr "城市" + +#. module: app_base_chinese +#: model:ir.actions.act_window,help:app_base_chinese.app_action_partner_customer_form +#: model:ir.actions.act_window,help:app_base_chinese.app_action_partner_form +#: model:ir.actions.act_window,help:app_base_chinese.app_action_partner_supplier_form +msgid "Click to add a contact in your address book." +msgstr "点击在你的地址簿添加联系人。" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_res_partner_view_filter_customer +msgid "Companies" +msgstr "公司" + +#. module: app_base_chinese +#: model:ir.model,name:app_base_chinese.model_res_partner +msgid "Contact" +msgstr "联系人" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form +msgid "Country" +msgstr "国家/地区" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_res_partner_kanban_view +msgid "Credit:" +msgstr "授信额度:" + +#. module: app_base_chinese +#: model:ir.actions.act_window,name:app_base_chinese.app_action_partner_customer_form +#: model:ir.ui.view,arch_db:app_base_chinese.app_view_partner_customer_tree +msgid "Customers" +msgstr "客户" + +#. module: app_base_chinese +#: model:ir.actions.act_window,name:app_base_chinese.app_action_partner_employee_form +msgid "Employees" +msgstr "员工" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_res_partner_view_filter_customer +msgid "Group By" +msgstr "分组" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_res_partner_view_filter_customer +msgid "My Partners" +msgstr "我的业务伙伴" + +#. module: app_base_chinese +#: model:ir.actions.act_window,name:app_base_chinese.app_action_partner_other_form +msgid "Other Partners" +msgstr "其它业务伙伴" + +#. module: app_base_chinese +#: model:ir.actions.act_window,name:app_base_chinese.app_action_partner_form +msgid "Partner" +msgstr "合作伙伴" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_res_partner_view_filter_customer +msgid "Persons" +msgstr "个人" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_res_partner_view_filter_customer +msgid "Salesperson" +msgstr "销售员" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_res_partner_view_filter_customer +msgid "Search Partner" +msgstr "搜索业务伙伴" + +#. module: app_base_chinese +#: model:ir.model.fields,field_description:app_base_chinese.field_res_partner_short_name +#: model:ir.model.fields,field_description:app_base_chinese.field_res_users_short_name +msgid "Short Name" +msgstr "简称" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form +msgid "State" +msgstr "州/省" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form +msgid "Street..." +msgstr "街道..." + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_res_partner_view_filter_customer +msgid "Tag" +msgstr "标签" + +#. module: app_base_chinese +#: code:addons/app_base_chinese/models/res_partner.py:14 +#: sql_constraint:res.partner:0 +#, python-format +msgid "The reference must be unique" +msgstr "编码必须唯一" + +#. module: app_base_chinese +#: code:addons/app_base_chinese/models/res_partner.py:21 +#, python-format +msgid "The reference must be unique!" +msgstr "编码必须唯一" + +#. module: app_base_chinese +#: model:ir.actions.act_window,name:app_base_chinese.app_action_partner_supplier_form +#: model:ir.ui.view,arch_db:app_base_chinese.app_view_partner_supplier_tree +msgid "Vendors" +msgstr "供应商" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form +msgid "ZIP" +msgstr "邮箱" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form +msgid "e.g. VIP001" +msgstr "例如 VIP001" + +#. module: app_base_chinese +#: model:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form +msgid "手机:" +msgstr "手机:" 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..2d36cef7 --- /dev/null +++ b/app_base_chinese/models/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- + +from . import res_partner + + + diff --git a/app_base_chinese/models/res_partner.py b/app_base_chinese/models/res_partner.py new file mode 100644 index 00000000..b2270218 --- /dev/null +++ b/app_base_chinese/models/res_partner.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- + +from odoo import api, models, fields, _ +from odoo.exceptions import UserError, ValidationError + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + short_name = fields.Char('Short Name') # 简称 + + # 在原唯一检查中增加ref唯一 + _sql_constraints = [ + ('uniq_ref', 'unique(ref)', _('The reference must be unique')), + ] + + @api.constrains('ref') + def _check_ref(self): + customers = self.search([('ref', '=', self.ref)], limit=2) + if len(customers) > 1: + raise ValidationError(_('The reference must be unique!')) + + # 显示[编码]简称 + @api.multi + def name_get(self): + result = [] + for partner in self: + if partner.short_name: + name = partner.short_name + else: + name = partner.name + if partner.ref: + name = '[' + partner.ref + ']' + name + result.append((partner.id, name)) + return result + + +class PartnerCategory(models.Model): + _inherit = 'res.partner.category' + _order = 'sequence, parent_left, name' + + sequence = fields.Integer('Sequence', help="Used to order partner category") + + 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/banner.jpg b/app_base_chinese/static/description/banner.jpg new file mode 100644 index 00000000..ae2ca114 Binary files /dev/null and b/app_base_chinese/static/description/banner.jpg differ diff --git a/app_base_chinese/static/description/demo1.jpg b/app_base_chinese/static/description/demo1.jpg new file mode 100644 index 00000000..d2fe97dc Binary files /dev/null and b/app_base_chinese/static/description/demo1.jpg differ diff --git a/app_base_chinese/static/description/icon.png b/app_base_chinese/static/description/icon.png new file mode 100644 index 00000000..22cbd278 Binary files /dev/null and b/app_base_chinese/static/description/icon.png differ diff --git a/app_base_chinese/static/description/index.html b/app_base_chinese/static/description/index.html new file mode 100644 index 00000000..86da00f8 --- /dev/null +++ b/app_base_chinese/static/description/index.html @@ -0,0 +1,74 @@ + + + + App base chinese. Local customize for china user + Set all chinese default value. Like Default country, timezone, currency, partner... + + Lastest update: v12.0.11.14, 2018-11-14 + + + + + + Key features: + + + + Chinese feature enhance. + + + + Set Default country, state, timezone, currency. + + + + Set partner to chinese format. + + + + + + + + + + + + + + + + Technical Help & Support + + + + + For any type of technical help & support requests, Feel free to contact us + + guohuadeng@hotmail.com + + Via QQ: 300883 + + 300883@qq.com + + + + Visit our website for more support. + + http://www.sunpop.cn + + + + + More Powerful addons, Make your odoo very easy to use, easy customize: + Supop.cn Odoo Addons + + + + diff --git a/app_base_chinese/views/res_partner_category_views.xml b/app_base_chinese/views/res_partner_category_views.xml new file mode 100644 index 00000000..ba174895 --- /dev/null +++ b/app_base_chinese/views/res_partner_category_views.xml @@ -0,0 +1,16 @@ + + + + + + app Contact Tags + res.partner.category + + + + + + + + + diff --git a/app_base_chinese/views/res_partner_views.xml b/app_base_chinese/views/res_partner_views.xml new file mode 100644 index 00000000..a9d25fd4 --- /dev/null +++ b/app_base_chinese/views/res_partner_views.xml @@ -0,0 +1,139 @@ + + + + + + app.res.partner.form + res.partner + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + {'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': + state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': 0, 'default_customer': 0, + 'default_lang': lang,} + + + + + {'invisible': [('is_company','!=', True)]} + + + + + + + + + + + + + + + + + + + + + + + [] + + + + + + + + + + + + + + + + + + + + + + 电话: + + + 手机: + + + + + + + + + + app.res.partner.kanban + res.partner + + + + + + + + , + + + Credit: + + + + + + + + + + + + diff --git a/app_odoo_customize/i18n/zh_CN.po b/app_odoo_customize/i18n/zh_CN.po index bbcb3558..f9783908 100644 --- a/app_odoo_customize/i18n/zh_CN.po +++ b/app_odoo_customize/i18n/zh_CN.po @@ -130,6 +130,11 @@ msgstr "定制我的odoo" msgid "Data Cleaning (Be careful to do that!)" msgstr "数据清理(请谨慎操作!)" +#. module: app_odoo_customize +#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Please confirm to delete the select data?" +msgstr "您确认要删除指定数据?" + #. module: app_odoo_customize #. openerp-web #: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:8 @@ -290,31 +295,6 @@ msgstr "显示分享Odoo" msgid "Show Support" msgstr "显示支持" -#. module: app_odoo_customize -#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings__group_show_line_subtotals_tax_included -msgid "Show line subtotals with taxes (B2C)" -msgstr "显示含税明细行在汇总表(B2B)." - -#. module: app_odoo_customize -#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings__group_show_line_subtotals_tax_excluded -msgid "Show line subtotals without taxes (B2B)" -msgstr "明细行汇总含税(B2B)." - -#. module: app_odoo_customize -#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings__group_product_pricelist -msgid "Show pricelists On Products" -msgstr "显示产品的价目表" - -#. module: app_odoo_customize -#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings__group_pricelist_item -msgid "Show pricelists to customers" -msgstr "给客户显示价目表" - -#. module: app_odoo_customize -#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings__module_product_email_template -msgid "Specific Email" -msgstr "特定的电子邮件" - #. module: app_odoo_customize #: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings__app_stop_subscribe msgid "Stop Odoo Subscribe(Performance Improve)" diff --git a/app_stock_putaway/__manifest__.py b/app_stock_putaway/__manifest__.py index 0816776e..2b83c902 100644 --- a/app_stock_putaway/__manifest__.py +++ b/app_stock_putaway/__manifest__.py @@ -50,5 +50,5 @@ ], 'installable': True, 'application': True, - 'auto_install': True, + 'auto_install': False, } diff --git a/l10n_cn_standard_lastest/__init__.py b/l10n_cn_standard_lastest/__init__.py new file mode 100644 index 00000000..63ea9f54 --- /dev/null +++ b/l10n_cn_standard_lastest/__init__.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +# Copyright (C) 2008-2008 凯源吕鑫 lvxin@gmail.com +# 维智众源 oldrev@gmail.com +# Copyright (C) 2012-2012 南京盈通 ccdos@intoerp.com +# Copyright (C) 2008-now 开阖软件 jeff@osbzr.com < PM and LTS > +# Copyright (C) 2017-now jeffery9@gmail.com +# Copyright (C) 2018-11 广州尚鹏 http://www.sunpop.cn + +from .hooks import pre_init_hook +from .hooks import post_init_hook +from . import models + + diff --git a/l10n_cn_standard_lastest/__manifest__.py b/l10n_cn_standard_lastest/__manifest__.py new file mode 100644 index 00000000..bc20dc8f --- /dev/null +++ b/l10n_cn_standard_lastest/__manifest__.py @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +# Copyright (C) 2008-2008 凯源吕鑫 lvxin@gmail.com +# 维智众源 oldrev@gmail.com +# Copyright (C) 2012-2012 南京盈通 ccdos@intoerp.com +# Copyright (C) 2008-now 开阖软件 jeff@osbzr.com < PM and LTS > +# Copyright (C) 2017-now jeffery9@gmail.com +# Copyright (C) 2018-11 广州尚鹏 http://www.sunpop.cn + +{ + 'name': '2018最新中国企业会计表(营改增).Latest Chinese Accounting.', + 'version': '12.0.11.14', + 'author': 'Sunpop.cn', + 'category': 'Localization', + 'website': 'http://www.sunpop.cn', + 'license': 'LGPL-3', + 'sequence': 12, + 'summary': """ + Chinese enhance. Focus on account chart. + update tax. + add account chart group data. + Set account group. + Set chinese tax. + Set chinese account report. + """, + 'description': """ + + 最新中国化财务,主要针对标准会计科目表作了优化。 + 1. 2018最新会计科目表,处理营改增后会计科目调整。 + 2. 将菜单中设置为"财务"。 + 3. 补充分类及标签信息。 + 4. 更新税信息。 + 5. 增加树状结构,可设置上级科目,配合 "app_web_superbar" 使用可轻易实现树状导航。 + 6. 注意,必须在没有业务数据,没有会计科目的初始环境。可以使用 "app_odoo_customize" 模块清除财务数据,重置会计科目。 + + 如果是多语种环境需要自行更改翻译,主要体现在16%增值税处理。 + 广州尚鹏,Sunpop.cn + + The Latest Chinese Account + Including the following data in the Accounting Standards for Business Enterprises + 包含企业会计准则以下数据 + + * Chart of Accounts + * 科目表模板 + + * Account templates + * 科目模板 + + * Tax templates + * 税金模板 + + """, + 'depends': [ + 'account', + 'l10n_cn', + ], + 'images': ['static/description/banner.png'], + 'data': [ + 'views/account_account_views.xml', + 'views/account_views.xml', + 'data/chart_data.xml', + 'data/account_account_tag_data.xml', + 'data/account.group.csv', + 'data/account.account.template.csv', + 'data/account_tax_template_data.xml', + 'data/account_chart_template_data.xml', + ], + 'post_init_hook': 'post_init_hook', + 'installable': True, + 'application': True, + 'auto_install': False, +} diff --git a/l10n_cn_standard_lastest/data/account.account.template.csv b/l10n_cn_standard_lastest/data/account.account.template.csv new file mode 100644 index 00000000..fcc0e1c0 --- /dev/null +++ b/l10n_cn_standard_lastest/data/account.account.template.csv @@ -0,0 +1,176 @@ +id,code,name,parent_id/id,reconcile,user_type_id/id,group_id/id,tag_ids/id,chart_template_id/id +account_1003,1003,存放中央银行款项,,TRUE,account.data_account_type_current_assets,account_group_1,tag3,l10n_chart_china_standard_business_latest +account_1011,1011,存放同业,,FALSE,account.data_account_type_current_assets,account_group_1,tag3,l10n_chart_china_standard_business_latest +account_1012,1012,其他货币资金,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1021,1021,结算备付金,,FALSE,account.data_account_type_current_assets,account_group_1,tag4,l10n_chart_china_standard_business_latest +account_1031,1031,存出保证金,,FALSE,account.data_account_type_current_assets,account_group_1,tag5,l10n_chart_china_standard_business_latest +account_1101,1101,交易性金融资产,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1111,1111,买入返售金融资产,,FALSE,account.data_account_type_current_assets,account_group_1,tag5,l10n_chart_china_standard_business_latest +account_1121,1121,应收票据,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest +account_1122,1122,应收账款,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest +account_1123,1123,预付账款,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest +account_1131,1131,应收股利,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest +account_1132,1132,应收利息,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest +account_1201,1201,应收代位追偿款,,FALSE,account.data_account_type_current_assets,account_group_1,tag6,l10n_chart_china_standard_business_latest +account_1211,1211,应收分保账款,,FALSE,account.data_account_type_current_assets,account_group_1,tag6,l10n_chart_china_standard_business_latest +account_1212,1212,应收分保合同准备金,,FALSE,account.data_account_type_current_assets,account_group_1,tag6,l10n_chart_china_standard_business_latest +account_1221,1221,其他应收款,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1231,1231,坏账准备,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1301,1301,贴现资产,,FALSE,account.data_account_type_current_assets,account_group_1,tag3,l10n_chart_china_standard_business_latest +account_1302,1302,拆出资金,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1303,1303,贷款,,FALSE,account.data_account_type_current_assets,account_group_1,tag7,l10n_chart_china_standard_business_latest +account_1304,1304,贷款损失准备,,FALSE,account.data_account_type_current_assets,account_group_1,tag7,l10n_chart_china_standard_business_latest +account_1311,1311,代理兑付证券,,FALSE,account.data_account_type_current_assets,account_group_1,tag11,l10n_chart_china_standard_business_latest +account_1321,1321,代理业务资产,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1401,1401,材料采购,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1402,1402,在途物资,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1403,1403,原材料,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1404,1404,材料成本差异,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1405,1405,库存商品,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1406,1406,发出商品,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1407,1407,商品进销差价,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1408,1408,委托加工物资,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1411,1411,周转材料,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1421,1421,消耗性生物资产,,FALSE,account.data_account_type_non_current_assets,account_group_1,tag8,l10n_chart_china_standard_business_latest +account_1431,1431,贵金属,,FALSE,account.data_account_type_non_current_assets,account_group_1,tag3,l10n_chart_china_standard_business_latest +account_1441,1441,抵债资产,,FALSE,account.data_account_type_non_current_assets,account_group_1,tag5,l10n_chart_china_standard_business_latest +account_1451,1451,损余物资,,FALSE,account.data_account_type_non_current_assets,account_group_1,tag6,l10n_chart_china_standard_business_latest +account_1461,1461,融资租赁资产,,FALSE,account.data_account_type_non_current_assets,account_group_1,tag9,l10n_chart_china_standard_business_latest +account_1471,1471,存货跌价准备,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1501,1501,持有至到期投资,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1502,1502,持有至到期投资减值准备,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1503,1503,可供出售金融资产,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1511,1511,长期股权投资,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1512,1512,长期股权投资减值准备,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1521,1521,投资性房地产,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1531,1531,长期应收款,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1532,1532,未实现融资收益,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1541,1541,存出资本保证金,,FALSE,account.data_account_type_non_current_assets,account_group_1,tag6,l10n_chart_china_standard_business_latest +account_1601,1601,固定资产,,FALSE,account.data_account_type_fixed_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1602,1602,累计折旧,,FALSE,account.data_account_type_fixed_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1603,1603,固定资产减值准备,,FALSE,account.data_account_type_fixed_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1604,1604,在建工程,,FALSE,account.data_account_type_fixed_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1605,1605,工程物资,,FALSE,account.data_account_type_fixed_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1606,1606,固定资产清理,,FALSE,account.data_account_type_fixed_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1611,1611,未担保余值,,FALSE,account.data_account_type_current_assets,account_group_1,tag9,l10n_chart_china_standard_business_latest +account_1621,1621,生产性生物资产,,FALSE,account.data_account_type_current_assets,account_group_1,tag8,l10n_chart_china_standard_business_latest +account_1622,1622,生产性生物资产累计折旧,,FALSE,account.data_account_type_current_assets,account_group_1,tag8,l10n_chart_china_standard_business_latest +account_1623,1623,公益性生物资产,,FALSE,account.data_account_type_current_assets,account_group_1,tag8,l10n_chart_china_standard_business_latest +account_1631,1631,油气资产,,FALSE,account.data_account_type_current_assets,account_group_1,tag10,l10n_chart_china_standard_business_latest +account_1632,1632,累计折耗,,FALSE,account.data_account_type_current_assets,account_group_1,tag10,l10n_chart_china_standard_business_latest +account_1701,1701,无形资产,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1702,1702,累计摊销,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1703,1703,无形资产减值准备,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1711,1711,商誉,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1801,1801,长期待摊费用,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1811,1811,递延所得税资产,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1821,1821,独立账户资产,,FALSE,account.data_account_type_current_assets,account_group_1,tag6,l10n_chart_china_standard_business_latest +account_1901,1901,待处理财产损溢,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_2001,2001,短期借款,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2002,2002,存入保证金,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag5,l10n_chart_china_standard_business_latest +account_2003,2003,拆入资金,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag5,l10n_chart_china_standard_business_latest +account_2004,2004,向中央银行借款,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag3,l10n_chart_china_standard_business_latest +account_2011,2011,吸收存款,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag3,l10n_chart_china_standard_business_latest +account_2012,2012,同业存放,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag3,l10n_chart_china_standard_business_latest +account_2021,2021,贴现负债,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag3,l10n_chart_china_standard_business_latest +account_2101,2101,交易性金融负债,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2111,2111,卖出回购金融资产款,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag5,l10n_chart_china_standard_business_latest +account_2201,2201,应付票据,,TRUE,account.data_account_type_payable,account_group_2,,l10n_chart_china_standard_business_latest +account_2202,2202,应付账款,,TRUE,account.data_account_type_payable,account_group_2,,l10n_chart_china_standard_business_latest +account_2203,2203,预收账款,,TRUE,account.data_account_type_payable,account_group_2,,l10n_chart_china_standard_business_latest +account_2211,2211,应付职工薪酬,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221,2221,应交税费,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1,2221.01,应交增值税,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_1,2221.01.01,进项税额,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_2,2221.01.02,已交税金,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_3,2221.01.03,转出未交增值税,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_4,2221.01.04,减免税款,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_5,2221.01.05,销项税额,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_6,2221.01.06,出口退税,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_7,2221.01.07,进项税额转出,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_8,2221.01.08,出口抵减内销产品应纳税额,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_9,2221.01.09,转出多交增值税,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_2,2221.02,未交增值税,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_3,2221.03,应交营业税,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_4,2221.04,应交消费税,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_5,2221.05,应交资源税,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_6,2221.06,应交所得税,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_7,2221.07,应交土地增值税,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_8,2221.08,应交城市维护建设税,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_9,2221.09,应交房产税,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_10,2221.10,应交土地使用税,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_11,2221.11,应交车船使用税,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_12,2221.12,应交个人所得税,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2231,2231,应付利息,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2232,2232,应付股利,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2241,2241,其他应付款,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2251,2251,应付保单红利,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag6,l10n_chart_china_standard_business_latest +account_2261,2261,应付分保账款,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag6,l10n_chart_china_standard_business_latest +account_2311,2311,代理买卖证券款,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag4,l10n_chart_china_standard_business_latest +account_2312,2312,代理承销证券款,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag11,l10n_chart_china_standard_business_latest +account_2313,2313,代理兑付证券款,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag11,l10n_chart_china_standard_business_latest +account_2314,2314,代理业务负债,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2401,2401,递延收益,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2501,2501,长期借款,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2502,2502,应付债券,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2601,2601,未到期责任准备金,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag6,l10n_chart_china_standard_business_latest +account_2602,2602,保险责任准备金,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag6,l10n_chart_china_standard_business_latest +account_2611,2611,保户储金,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag6,l10n_chart_china_standard_business_latest +account_2621,2621,独立账户负债,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag6,l10n_chart_china_standard_business_latest +account_2701,2701,长期应付款,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2702,2702,未确认融资费用,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2711,2711,专项应付款,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2801,2801,预计负债,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2901,2901,递延所得税负债,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_3001,3001,清算资金往来,,FALSE,l10n_cn.user_type_all,account_group_3,tag3,l10n_chart_china_standard_business_latest +account_3002,3002,货币兑换,,FALSE,l10n_cn.user_type_all,account_group_3,tag5,l10n_chart_china_standard_business_latest +account_3101,3101,衍生工具,,FALSE,l10n_cn.user_type_all,account_group_3,,l10n_chart_china_standard_business_latest +account_3201,3201,套期工具,,FALSE,l10n_cn.user_type_all,account_group_3,,l10n_chart_china_standard_business_latest +account_3202,3202,被套期项目,,FALSE,l10n_cn.user_type_all,account_group_3,,l10n_chart_china_standard_business_latest +account_4001,4001,实收资本,,FALSE,account.data_account_type_equity,account_group_4,,l10n_chart_china_standard_business_latest +account_4002,4002,资本公积,,FALSE,account.data_account_type_equity,account_group_4,,l10n_chart_china_standard_business_latest +account_4101,4101,盈余公积,,FALSE,account.data_account_type_equity,account_group_4,,l10n_chart_china_standard_business_latest +account_4102,4102,一般风险准备,,FALSE,account.data_account_type_equity,account_group_4,tag5,l10n_chart_china_standard_business_latest +account_4103,4103,本年利润,,FALSE,account.data_account_type_equity,account_group_4,,l10n_chart_china_standard_business_latest +account_4104,4104,利润分配,,FALSE,account.data_account_type_equity,account_group_4,,l10n_chart_china_standard_business_latest +account_4201,4201,库存股,,FALSE,account.data_account_type_equity,account_group_4,,l10n_chart_china_standard_business_latest +account_5001,5001,生产成本,,FALSE,l10n_cn.user_type_all,account_group_5,,l10n_chart_china_standard_business_latest +account_5101,5101,制造费用,,FALSE,l10n_cn.user_type_all,account_group_5,,l10n_chart_china_standard_business_latest +account_5201,5201,劳务成本,,FALSE,l10n_cn.user_type_all,account_group_5,,l10n_chart_china_standard_business_latest +account_5301,5301,研发支出,,FALSE,l10n_cn.user_type_all,account_group_5,,l10n_chart_china_standard_business_latest +account_5401,5401,工程施工,,FALSE,l10n_cn.user_type_all,account_group_5,tag12,l10n_chart_china_standard_business_latest +account_5402,5402,工程结算,,FALSE,l10n_cn.user_type_all,account_group_5,tag12,l10n_chart_china_standard_business_latest +account_5403,5403,机械作业,,FALSE,l10n_cn.user_type_all,account_group_5,tag12,l10n_chart_china_standard_business_latest +account_6001,6001,主营业务收入,,FALSE,account.data_account_type_revenue,account_group_6,,l10n_chart_china_standard_business_latest +account_6011,6011,利息收入,,FALSE,account.data_account_type_revenue,account_group_6,tag5,l10n_chart_china_standard_business_latest +account_6021,6021,手续费及佣金收入,,FALSE,account.data_account_type_revenue,account_group_6,tag5,l10n_chart_china_standard_business_latest +account_6031,6031,保费收入,,FALSE,account.data_account_type_revenue,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6041,6041,租赁收入,,FALSE,account.data_account_type_revenue,account_group_6,tag9,l10n_chart_china_standard_business_latest +account_6051,6051,其他业务收入,,FALSE,account.data_account_type_revenue,account_group_6,,l10n_chart_china_standard_business_latest +account_6061,6061,汇兑损益,,FALSE,account.data_account_type_revenue,account_group_6,tag5,l10n_chart_china_standard_business_latest +account_6101,6101,公允价值变动损益,,FALSE,account.data_account_type_revenue,account_group_6,,l10n_chart_china_standard_business_latest +account_6111,6111,投资收益,,FALSE,account.data_account_type_revenue,account_group_6,,l10n_chart_china_standard_business_latest +account_6201,6201,摊回保险责任准备金,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6202,6202,摊回赔付支出,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6203,6203,摊回分保费用,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6301,6301,营业外收入,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6401,6401,主营业务成本,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6402,6402,其他业务成本,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6403,6403,税金及附加,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6411,6411,利息支出,,FALSE,account.data_account_type_expenses,account_group_6,tag5,l10n_chart_china_standard_business_latest +account_6421,6421,手续费及佣金支出,,FALSE,account.data_account_type_expenses,account_group_6,tag5,l10n_chart_china_standard_business_latest +account_6501,6501,提取未到期责任准备金,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6502,6502,提取保险责任准备金,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6511,6511,赔付支出,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6521,6521,保户红利支出,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6531,6531,退保金,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6541,6541,分出保费,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6542,6542,分保费用,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6601,6601,销售费用,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6602,6602,管理费用,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6603,6603,财务费用,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6604,6604,勘探费用,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6701,6701,资产减值损失,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6711,6711,营业外支出,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6801,6801,所得税费用,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6901,6901,以前年度损益调整,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest diff --git a/l10n_cn_standard_lastest/data/account.group.csv b/l10n_cn_standard_lastest/data/account.group.csv new file mode 100644 index 00000000..a46e95c4 --- /dev/null +++ b/l10n_cn_standard_lastest/data/account.group.csv @@ -0,0 +1,7 @@ +"id","code_prefix","name" +"account_group_1","1","资产类" +"account_group_2","2","负债类" +"account_group_3","3","共有类" +"account_group_4","4","所有者权益类" +"account_group_5","5","成本类" +"account_group_6","6","损益类" \ No newline at end of file diff --git a/l10n_cn_standard_lastest/data/account_account_tag_data.xml b/l10n_cn_standard_lastest/data/account_account_tag_data.xml new file mode 100644 index 00000000..0e67c45b --- /dev/null +++ b/l10n_cn_standard_lastest/data/account_account_tag_data.xml @@ -0,0 +1,45 @@ + + + + + + + 增值税16%销项税 + taxes + + + 增值税16%进项税 + taxes + + + 银行专用 + + + 证券专用 + + + 金融共用 + + + 保险专用 + + + 银行和保险共用 + + + 农业专用 + + + 租赁专用 + + + 石油天然气开采专用 + + + 银行和证券共用 + + + 建造承包商专用 + + + diff --git a/l10n_cn_standard_lastest/data/account_chart_template_data.xml b/l10n_cn_standard_lastest/data/account_chart_template_data.xml new file mode 100644 index 00000000..36d8228e --- /dev/null +++ b/l10n_cn_standard_lastest/data/account_chart_template_data.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/l10n_cn_standard_lastest/data/account_tax_template_data.xml b/l10n_cn_standard_lastest/data/account_tax_template_data.xml new file mode 100644 index 00000000..433e84e3 --- /dev/null +++ b/l10n_cn_standard_lastest/data/account_tax_template_data.xml @@ -0,0 +1,27 @@ + + + + + + + 增值税16%销项税 + percent + + sale + + + + + + + 增值税16%进项税 + + purchase + percent + + + + + + + diff --git a/l10n_cn_standard_lastest/data/chart_data.xml b/l10n_cn_standard_lastest/data/chart_data.xml new file mode 100644 index 00000000..ccc1d1f0 --- /dev/null +++ b/l10n_cn_standard_lastest/data/chart_data.xml @@ -0,0 +1,15 @@ + + + + + + + 2018中国企业会计科目表 + + + 1001 + 1002 + 1003 + + + diff --git a/l10n_cn_standard_lastest/data/src/1account.account.template.csv b/l10n_cn_standard_lastest/data/src/1account.account.template.csv new file mode 100644 index 00000000..5f984764 --- /dev/null +++ b/l10n_cn_standard_lastest/data/src/1account.account.template.csv @@ -0,0 +1,176 @@ +id,code,name,parent_id/id,reconcile,user_type_id/id,group_id/id,tag_ids/id,chart_template_id/id +account_1003,1003,п,,TRUE,account.data_account_type_current_assets,account_group_1,tag3,l10n_chart_china_standard_business_latest +account_1011,1011,ͬҵ,,FALSE,account.data_account_type_current_assets,account_group_1,tag3,l10n_chart_china_standard_business_latest +account_1012,1012,ʽ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1021,1021,㱸,,FALSE,account.data_account_type_current_assets,account_group_1,tag4,l10n_chart_china_standard_business_latest +account_1031,1031,֤,,FALSE,account.data_account_type_current_assets,account_group_1,tag5,l10n_chart_china_standard_business_latest +account_1101,1101,Խʲ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1111,1111,뷵۽ʲ,,FALSE,account.data_account_type_current_assets,account_group_1,tag5,l10n_chart_china_standard_business_latest +account_1121,1121,ӦƱ,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest +account_1122,1122,Ӧ˿,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest +account_1123,1123,Ԥ˿,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest +account_1131,1131,Ӧչ,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest +account_1132,1132,ӦϢ,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest +account_1201,1201,Ӧմλ,,FALSE,account.data_account_type_current_assets,account_group_1,tag6,l10n_chart_china_standard_business_latest +account_1211,1211,Ӧշֱ˿,,FALSE,account.data_account_type_current_assets,account_group_1,tag6,l10n_chart_china_standard_business_latest +account_1212,1212,Ӧշֱͬ,,FALSE,account.data_account_type_current_assets,account_group_1,tag6,l10n_chart_china_standard_business_latest +account_1221,1221,Ӧտ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1231,1231,,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1301,1301,ʲ,,FALSE,account.data_account_type_current_assets,account_group_1,tag3,l10n_chart_china_standard_business_latest +account_1302,1302,ʽ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1303,1303,,,FALSE,account.data_account_type_current_assets,account_group_1,tag7,l10n_chart_china_standard_business_latest +account_1304,1304,ʧ,,FALSE,account.data_account_type_current_assets,account_group_1,tag7,l10n_chart_china_standard_business_latest +account_1311,1311,Ҹ֤ȯ,,FALSE,account.data_account_type_current_assets,account_group_1,tag11,l10n_chart_china_standard_business_latest +account_1321,1321,ҵʲ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1401,1401,ϲɹ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1402,1402,;,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1403,1403,ԭ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1404,1404,ϳɱ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1405,1405,Ʒ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1406,1406,Ʒ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1407,1407,Ʒ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1408,1408,ίмӹ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1411,1411,ת,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1421,1421,ʲ,,FALSE,account.data_account_type_non_current_assets,account_group_1,tag8,l10n_chart_china_standard_business_latest +account_1431,1431,,,FALSE,account.data_account_type_non_current_assets,account_group_1,tag3,l10n_chart_china_standard_business_latest +account_1441,1441,ծʲ,,FALSE,account.data_account_type_non_current_assets,account_group_1,tag5,l10n_chart_china_standard_business_latest +account_1451,1451,,,FALSE,account.data_account_type_non_current_assets,account_group_1,tag6,l10n_chart_china_standard_business_latest +account_1461,1461,ʲ,,FALSE,account.data_account_type_non_current_assets,account_group_1,tag9,l10n_chart_china_standard_business_latest +account_1471,1471,,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1501,1501,Ͷ,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1502,1502,Ͷʼֵ,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1503,1503,ɹ۽ʲ,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1511,1511,ڹȨͶ,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1512,1512,ڹȨͶʼֵ,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1521,1521,ͶԷز,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1531,1531,Ӧտ,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1532,1532,δʵ,,FALSE,account.data_account_type_non_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1541,1541,ʱ֤,,FALSE,account.data_account_type_non_current_assets,account_group_1,tag6,l10n_chart_china_standard_business_latest +account_1601,1601,̶ʲ,,FALSE,account.data_account_type_fixed_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1602,1602,ۼ۾,,FALSE,account.data_account_type_fixed_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1603,1603,̶ʲֵ,,FALSE,account.data_account_type_fixed_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1604,1604,ڽ,,FALSE,account.data_account_type_fixed_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1605,1605,,,FALSE,account.data_account_type_fixed_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1606,1606,̶ʲ,,FALSE,account.data_account_type_fixed_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1611,1611,δֵ,,FALSE,account.data_account_type_current_assets,account_group_1,tag9,l10n_chart_china_standard_business_latest +account_1621,1621,ʲ,,FALSE,account.data_account_type_current_assets,account_group_1,tag8,l10n_chart_china_standard_business_latest +account_1622,1622,ʲۼ۾,,FALSE,account.data_account_type_current_assets,account_group_1,tag8,l10n_chart_china_standard_business_latest +account_1623,1623,ʲ,,FALSE,account.data_account_type_current_assets,account_group_1,tag8,l10n_chart_china_standard_business_latest +account_1631,1631,ʲ,,FALSE,account.data_account_type_current_assets,account_group_1,tag10,l10n_chart_china_standard_business_latest +account_1632,1632,ۼۺ,,FALSE,account.data_account_type_current_assets,account_group_1,tag10,l10n_chart_china_standard_business_latest +account_1701,1701,ʲ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1702,1702,ۼ̯,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1703,1703,ʲֵ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1711,1711,,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1801,1801,ڴ̯,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1811,1811,˰ʲ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_1821,1821,˻ʲ,,FALSE,account.data_account_type_current_assets,account_group_1,tag6,l10n_chart_china_standard_business_latest +account_1901,1901,Ʋ,,FALSE,account.data_account_type_current_assets,account_group_1,,l10n_chart_china_standard_business_latest +account_2001,2001,ڽ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2002,2002,뱣֤,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag5,l10n_chart_china_standard_business_latest +account_2003,2003,ʽ,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag5,l10n_chart_china_standard_business_latest +account_2004,2004,н,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag3,l10n_chart_china_standard_business_latest +account_2011,2011,մ,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag3,l10n_chart_china_standard_business_latest +account_2012,2012,ͬҵ,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag3,l10n_chart_china_standard_business_latest +account_2021,2021,ָծ,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag3,l10n_chart_china_standard_business_latest +account_2101,2101,Խڸծ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2111,2111,عʲ,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag5,l10n_chart_china_standard_business_latest +account_2201,2201,ӦƱ,,TRUE,account.data_account_type_payable,account_group_2,,l10n_chart_china_standard_business_latest +account_2202,2202,Ӧ˿,,TRUE,account.data_account_type_payable,account_group_2,,l10n_chart_china_standard_business_latest +account_2203,2203,Ԥ˿,,TRUE,account.data_account_type_payable,account_group_2,,l10n_chart_china_standard_business_latest +account_2211,2211,Ӧְн,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221,2221,Ӧ˰,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1,2221.01,Ӧֵ˰,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l11n_chart_china_standard_business_latest +account_2221_1_1,2221.01.01,˰,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_2,2221.01.02,ѽ˰,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_3,2221.01.03,תδֵ˰,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_4,2221.01.04,˰,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_5,2221.01.05,˰,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_6,2221.01.06,˰,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_7,2221.01.07,˰ת,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_8,2221.01.08,ڵּƷӦ˰,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_1_9,2221.01.09,תֵཻ˰,account_2221_1,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_2,2221.02,δֵ˰,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_3,2221.03,ӦӪҵ˰,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_4,2221.04,Ӧ˰,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_5,2221.05,ӦԴ˰,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_6,2221.06,Ӧ˰,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_7,2221.07,Ӧֵ˰,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_8,2221.08,Ӧά˰,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_9,2221.09,Ӧ˰,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_10,2221.10,Ӧʹ˰,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_11,2221.11,Ӧʹ˰,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2221_12,2221.12,Ӧ˰,account_2221,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2231,2231,ӦϢ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2232,2232,Ӧ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2241,2241,Ӧ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2251,2251,Ӧ,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag6,l10n_chart_china_standard_business_latest +account_2261,2261,Ӧֱ˿,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag6,l10n_chart_china_standard_business_latest +account_2311,2311,֤ȯ,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag4,l10n_chart_china_standard_business_latest +account_2312,2312,֤ȯ,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag11,l10n_chart_china_standard_business_latest +account_2313,2313,Ҹ֤ȯ,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag11,l10n_chart_china_standard_business_latest +account_2314,2314,ҵծ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2401,2401,,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2501,2501,ڽ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2502,2502,Ӧծȯ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2601,2601,δ,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag6,l10n_chart_china_standard_business_latest +account_2602,2602,,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag6,l10n_chart_china_standard_business_latest +account_2611,2611,,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag6,l10n_chart_china_standard_business_latest +account_2621,2621,˻ծ,,FALSE,account.data_account_type_current_liabilities,account_group_2,tag6,l10n_chart_china_standard_business_latest +account_2701,2701,Ӧ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2702,2702,δȷʷ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2711,2711,רӦ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2801,2801,ԤƸծ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_2901,2901,˰ծ,,FALSE,account.data_account_type_current_liabilities,account_group_2,,l10n_chart_china_standard_business_latest +account_3001,3001,ʽ,,FALSE,l10n_cn.user_type_all,account_group_3,tag3,l10n_chart_china_standard_business_latest +account_3002,3002,Ҷһ,,FALSE,l10n_cn.user_type_all,account_group_3,tag5,l10n_chart_china_standard_business_latest +account_3101,3101,,,FALSE,l10n_cn.user_type_all,account_group_3,,l10n_chart_china_standard_business_latest +account_3201,3201,ڹ,,FALSE,l10n_cn.user_type_all,account_group_3,,l10n_chart_china_standard_business_latest +account_3202,3202,Ŀ,,FALSE,l10n_cn.user_type_all,account_group_3,,l10n_chart_china_standard_business_latest +account_4001,4001,ʵʱ,,FALSE,account.data_account_type_equity,account_group_4,,l10n_chart_china_standard_business_latest +account_4002,4002,ʱ,,FALSE,account.data_account_type_equity,account_group_4,,l10n_chart_china_standard_business_latest +account_4101,4101,ӯ,,FALSE,account.data_account_type_equity,account_group_4,,l10n_chart_china_standard_business_latest +account_4102,4102,һ,,FALSE,account.data_account_type_equity,account_group_4,tag5,l10n_chart_china_standard_business_latest +account_4103,4103,,,FALSE,account.data_account_type_equity,account_group_4,,l10n_chart_china_standard_business_latest +account_4104,4104,,,FALSE,account.data_account_type_equity,account_group_4,,l10n_chart_china_standard_business_latest +account_4201,4201,,,FALSE,account.data_account_type_equity,account_group_4,,l10n_chart_china_standard_business_latest +account_5001,5001,ɱ,,FALSE,l10n_cn.user_type_all,account_group_5,,l10n_chart_china_standard_business_latest +account_5101,5101,,,FALSE,l10n_cn.user_type_all,account_group_5,,l10n_chart_china_standard_business_latest +account_5201,5201,ɱ,,FALSE,l10n_cn.user_type_all,account_group_5,,l10n_chart_china_standard_business_latest +account_5301,5301,з֧,,FALSE,l10n_cn.user_type_all,account_group_5,,l10n_chart_china_standard_business_latest +account_5401,5401,ʩ,,FALSE,l10n_cn.user_type_all,account_group_5,tag12,l10n_chart_china_standard_business_latest +account_5402,5402,̽,,FALSE,l10n_cn.user_type_all,account_group_5,tag12,l10n_chart_china_standard_business_latest +account_5403,5403,еҵ,,FALSE,l10n_cn.user_type_all,account_group_5,tag12,l10n_chart_china_standard_business_latest +account_6001,6001,Ӫҵ,,FALSE,account.data_account_type_revenue,account_group_6,,l10n_chart_china_standard_business_latest +account_6011,6011,Ϣ,,FALSE,account.data_account_type_revenue,account_group_6,tag5,l10n_chart_china_standard_business_latest +account_6021,6021,ѼӶ,,FALSE,account.data_account_type_revenue,account_group_6,tag5,l10n_chart_china_standard_business_latest +account_6031,6031,,,FALSE,account.data_account_type_revenue,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6041,6041,,,FALSE,account.data_account_type_revenue,account_group_6,tag9,l10n_chart_china_standard_business_latest +account_6051,6051,ҵ,,FALSE,account.data_account_type_revenue,account_group_6,,l10n_chart_china_standard_business_latest +account_6061,6061,,,FALSE,account.data_account_type_revenue,account_group_6,tag5,l10n_chart_china_standard_business_latest +account_6101,6101,ʼֵ䶯,,FALSE,account.data_account_type_revenue,account_group_6,,l10n_chart_china_standard_business_latest +account_6111,6111,Ͷ,,FALSE,account.data_account_type_revenue,account_group_6,,l10n_chart_china_standard_business_latest +account_6201,6201,̯ر,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6202,6202,̯⸶֧,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6203,6203,̯طֱ,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6301,6301,Ӫҵ,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6401,6401,Ӫҵɱ,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6402,6402,ҵɱ,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6403,6403,˰,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6411,6411,Ϣ֧,,FALSE,account.data_account_type_expenses,account_group_6,tag5,l10n_chart_china_standard_business_latest +account_6421,6421,ѼӶ֧,,FALSE,account.data_account_type_expenses,account_group_6,tag5,l10n_chart_china_standard_business_latest +account_6501,6501,ȡδ,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6502,6502,ȡ,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6511,6511,⸶֧,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6521,6521,֧,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6531,6531,˱,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6541,6541,ֳ,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6542,6542,ֱ,,FALSE,account.data_account_type_expenses,account_group_6,tag6,l10n_chart_china_standard_business_latest +account_6601,6601,۷,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6602,6602,,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6603,6603,,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6604,6604,̽,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6701,6701,ʲֵʧ,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6711,6711,Ӫҵ֧,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6801,6801,˰,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest +account_6901,6901,ǰ,,FALSE,account.data_account_type_expenses,account_group_6,,l10n_chart_china_standard_business_latest diff --git a/l10n_cn_standard_lastest/hooks.py b/l10n_cn_standard_lastest/hooks.py new file mode 100644 index 00000000..f39e2c12 --- /dev/null +++ b/l10n_cn_standard_lastest/hooks.py @@ -0,0 +1,38 @@ +# -*- 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): + """ + 数据初始化,只在安装时执行,更新时不执行 + """ + pass + + +def post_init_hook(cr, registry): + """ + 数据初始化,只在安装后执行,更新时不执行 + 此处不执行,只是记录,该数据已处理完成 + """ + cr.execute("UPDATE account_account_template set group_id = " + "(select id from account_group where account_group.code_prefix=trim(substring(account_account_template.code from 1 for 1)) limit 1);") + + cr.execute("UPDATE account_account set group_id = " + "(select id from account_group where account_group.code_prefix=trim(substring(account_account.code from 1 for 1)) limit 1);") + pass + diff --git a/l10n_cn_standard_lastest/i18n/zh_CN.po b/l10n_cn_standard_lastest/i18n/zh_CN.po new file mode 100644 index 00000000..cc59c690 --- /dev/null +++ b/l10n_cn_standard_lastest/i18n/zh_CN.po @@ -0,0 +1,78 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_cn_standard_lastest +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-11-07 00:42+0000\n" +"PO-Revision-Date: 2018-11-07 00:42+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: l10n_cn_standard_lastest +#: model:ir.model,name:l10n_cn_standard_lastest.model_account_account +msgid "Account" +msgstr "科目" + +#. module: l10n_cn_standard_lastest +#: model:ir.model.fields,field_description:l10n_cn_standard_lastest.field_account_account_child_id +#: model:ir.model.fields,field_description:l10n_cn_standard_lastest.field_account_account_template_child_id +msgid "Child Chart" +msgstr "下级科目" + +#. module: l10n_cn_standard_lastest +#: model:ir.ui.view,arch_db:l10n_cn_standard_lastest.app_view_account_search +msgid "Group" +msgstr "类别" + +#. module: account +#: model:ir.ui.menu,name:account.menu_finance +#: model:ir.ui.view,arch_db:account.res_config_settings_view_form +msgid "Finance" +msgstr "财务" + + +#. module: l10n_cn_standard_lastest +#: model:ir.ui.menu,name:account.menu_finance +msgid "Finance" +msgstr "财务" + +#. module: l10n_cn_standard_lastest +#: model:ir.model.fields,field_description:l10n_cn_standard_lastest.field_account_account_parent_left +#: model:ir.model.fields,field_description:l10n_cn_standard_lastest.field_account_account_template_parent_left +msgid "Left Parent" +msgstr "左父项" + +#. module: l10n_cn_standard_lastest +#: model:ir.model.fields,field_description:l10n_cn_standard_lastest.field_account_account_parent_id +#: model:ir.model.fields,field_description:l10n_cn_standard_lastest.field_account_account_template_parent_id +msgid "Parent Chart" +msgstr "上级科目" + +#. module: l10n_cn_standard_lastest +#: model:ir.model.fields,field_description:l10n_cn_standard_lastest.field_account_account_parent_right +#: model:ir.model.fields,field_description:l10n_cn_standard_lastest.field_account_account_template_parent_right +msgid "Right Parent" +msgstr "右父项" + +#. module: l10n_cn_standard_lastest +#: model:ir.model,name:l10n_cn_standard_lastest.model_account_account_template +msgid "Templates for Accounts" +msgstr "科目模板" + +#. module: l10n_cn_standard_lastest +#: model:account.tax,name:l10n_cn_standard_lastest.1_vatp_standard_business +msgid "增值税16%进项税" +msgstr "增值税16%进项税" + +#. module: l10n_cn_standard_lastest +#: model:account.tax,name:l10n_cn_standard_lastest.1_vats_standard_business +msgid "增值税16%销项税" +msgstr "增值税16%销项税" + diff --git a/l10n_cn_standard_lastest/models/__init__.py b/l10n_cn_standard_lastest/models/__init__.py new file mode 100644 index 00000000..c3793b8b --- /dev/null +++ b/l10n_cn_standard_lastest/models/__init__.py @@ -0,0 +1,8 @@ +# -*- coding: utf-8 -*- + +from . import account_account_template +from . import account_account +from . import account_chart_template + + + diff --git a/l10n_cn_standard_lastest/models/account_account.py b/l10n_cn_standard_lastest/models/account_account.py new file mode 100644 index 00000000..072f4195 --- /dev/null +++ b/l10n_cn_standard_lastest/models/account_account.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- + +# Created on 2018-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 AccountAccount(models.Model): + _inherit = ['account.account'] + _parent_name = "parent_id" + _parent_store = True + _parent_order = 'code' + # _rec_name = 'complete_name' + _order = 'parent_left' + + parent_id = fields.Many2one('account.account', 'Parent Chart', index=True, ondelete='cascade') + child_id = fields.One2many('account.account', 'parent_id', 'Child Chart') + parent_left = fields.Integer('Left Parent', index=1) + parent_right = fields.Integer('Right Parent', index=1) + diff --git a/l10n_cn_standard_lastest/models/account_account_template.py b/l10n_cn_standard_lastest/models/account_account_template.py new file mode 100644 index 00000000..2896ff9a --- /dev/null +++ b/l10n_cn_standard_lastest/models/account_account_template.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- + +# Created on 2018-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 AccountAccountTemplate(models.Model): + + _inherit = ['account.account.template'] + _parent_name = "parent_id" + _parent_store = True + _parent_order = 'code' + # _rec_name = 'complete_name' + _order = 'parent_left' + + parent_id = fields.Many2one('account.account.template', 'Parent Chart', index=True, ondelete='cascade') + child_id = fields.One2many('account.account.template', 'parent_id', 'Child Chart') + parent_left = fields.Integer('Left Parent', index=1) + parent_right = fields.Integer('Right Parent', index=1) + + diff --git a/l10n_cn_standard_lastest/models/account_chart_template.py b/l10n_cn_standard_lastest/models/account_chart_template.py new file mode 100644 index 00000000..59214239 --- /dev/null +++ b/l10n_cn_standard_lastest/models/account_chart_template.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- + +# Created on 2018-11-07 +# 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 AccountChartTemplate(models.Model): + _inherit = "account.chart.template" + + def _get_account_vals(self, company, account_template, code_acc, tax_template_ref): + res = super(AccountChartTemplate, self)._get_account_vals(company, account_template, code_acc, tax_template_ref) + if account_template.parent_id: + parent_account = self.env['account.account'].sudo().search([ + '&', + ('code', '=', account_template.parent_id.code), + ('company_id', '=', company.id) + ], limit=1) + res.update({ + 'parent_id': parent_account.id, + }) + return res + + + diff --git a/l10n_cn_standard_lastest/static/description/banner.png b/l10n_cn_standard_lastest/static/description/banner.png new file mode 100644 index 00000000..72efdcec Binary files /dev/null and b/l10n_cn_standard_lastest/static/description/banner.png differ diff --git a/l10n_cn_standard_lastest/static/description/cnreadme.png b/l10n_cn_standard_lastest/static/description/cnreadme.png new file mode 100644 index 00000000..2d8bdc57 Binary files /dev/null and b/l10n_cn_standard_lastest/static/description/cnreadme.png differ diff --git a/l10n_cn_standard_lastest/static/description/icon.png b/l10n_cn_standard_lastest/static/description/icon.png new file mode 100644 index 00000000..22cbd278 Binary files /dev/null and b/l10n_cn_standard_lastest/static/description/icon.png differ diff --git a/l10n_cn_standard_lastest/static/description/index.html b/l10n_cn_standard_lastest/static/description/index.html new file mode 100644 index 00000000..9be5ac1f --- /dev/null +++ b/l10n_cn_standard_lastest/static/description/index.html @@ -0,0 +1,71 @@ + + + + App Latest Chinese Account chart 2018. + Set all chinese default value. Like Default country, timezone, currency, partner... + + Lastest update: v11.0.11.07, 2018-11-07 + + + + + + Key features: + + + + The Latest Account Chart. + + + + + Use super, easy to navigate account data. + + + + How to use + + + + + + + + + + + + Technical Help & Support + + + + + For any type of technical help & support requests, Feel free to contact us + + guohuadeng@hotmail.com + + Via QQ: 300883 + + 300883@qq.com + + + + Visit our website for more support. + + http://www.sunpop.cn + + + + + More Powerful addons, Make your odoo very easy to use, easy customize: + Supop.cn Odoo Addons + + + + diff --git a/l10n_cn_standard_lastest/static/description/superbar1.png b/l10n_cn_standard_lastest/static/description/superbar1.png new file mode 100644 index 00000000..27a25df8 Binary files /dev/null and b/l10n_cn_standard_lastest/static/description/superbar1.png differ diff --git a/l10n_cn_standard_lastest/views/account_account_views.xml b/l10n_cn_standard_lastest/views/account_account_views.xml new file mode 100644 index 00000000..5a8ed2cd --- /dev/null +++ b/l10n_cn_standard_lastest/views/account_account_views.xml @@ -0,0 +1,37 @@ + + + + + + app.account.list + account.account + + + + + + + + + + app.account.list + account.account + + + + + + + + + app.account.account.search + account.account + + + + + + + + + diff --git a/l10n_cn_standard_lastest/views/account_views.xml b/l10n_cn_standard_lastest/views/account_views.xml new file mode 100644 index 00000000..3825c261 --- /dev/null +++ b/l10n_cn_standard_lastest/views/account_views.xml @@ -0,0 +1,8 @@ + + + + + + +