From cd7ccc31b7c0589a05307e0623ddc5f581a1cb50 Mon Sep 17 00:00:00 2001 From: ivan deng Date: Tue, 9 Nov 2021 12:29:49 +0800 Subject: [PATCH] fix cn account --- app_odoo_customize/__manifest__.py | 2 +- .../models/res_config_settings.py | 66 ++-- l10n_cn_standard_latest/__manifest__.py | 2 +- .../data/account.account.template.csv | 20 +- .../data/account.group.csv | 2 +- .../data/src/1account.account.template.csv | 350 +++++++++--------- .../models/account_journal.py | 16 +- 7 files changed, 228 insertions(+), 230 deletions(-) diff --git a/app_odoo_customize/__manifest__.py b/app_odoo_customize/__manifest__.py index eace399d..86612db2 100644 --- a/app_odoo_customize/__manifest__.py +++ b/app_odoo_customize/__manifest__.py @@ -23,7 +23,7 @@ { 'name': 'odoo 15,14,13 Customize OEM(Boost, Data reset)', - 'version': '13.21.10.07', + 'version': '13.21.11.09', 'author': 'Sunpop.cn', 'category': 'Productivity', 'website': 'https://www.sunpop.cn', diff --git a/app_odoo_customize/models/res_config_settings.py b/app_odoo_customize/models/res_config_settings.py index 84d1932a..4b11da22 100644 --- a/app_odoo_customize/models/res_config_settings.py +++ b/app_odoo_customize/models/res_config_settings.py @@ -358,71 +358,73 @@ class ResConfigSettings(models.TransientModel): try: field1 = self.env['ir.model.fields']._get('product.template', "taxes_id").id field2 = self.env['ir.model.fields']._get('product.template', "supplier_taxes_id").id - + sql = "delete from ir_default where (field_id = %s or field_id = %s) and company_id=%d" \ % (field1, field2, company_id) sql2 = "update account_journal set bank_account_id=NULL where company_id=%d;" % company_id self._cr.execute(sql) self._cr.execute(sql2) - + self._cr.commit() except Exception as e: _logger.error('remove data error: %s,%s', 'account_chart: set tax and account_journal', e) - + # 增加对 pos的处理 - if self.env['ir.model']._get('pos.config'): - self.env['pos.config'].write({ - 'journal_id': False, + try: + rec = self.env['pos.config'].search([]) + rec.write({ + 'journal_id': None, + 'invoice_journal_id': None, }) + except Exception as e: + _logger.error('remove data error: %s,%s', 'account_chart', e) # todo: 以下处理参考 res.partner的合并,将所有m2o的都一次处理,不需要次次找模型 # partner 处理 try: rec = self.env['res.partner'].search([]) - for r in rec: - r.write({ - 'property_account_receivable_id': None, - 'property_account_payable_id': None, - }) + rec.write({ + 'property_account_receivable_id': None, + 'property_account_payable_id': None, + }) except Exception as e: _logger.error('remove data error: %s,%s', 'account_chart', e) # 品类处理 try: rec = self.env['product.category'].search([]) - for r in rec: - r.write({ - 'property_account_income_categ_id': None, - 'property_account_expense_categ_id': None, - 'property_account_creditor_price_difference_categ': None, - 'property_stock_account_input_categ_id': None, - 'property_stock_account_output_categ_id': None, - 'property_stock_valuation_account_id': None, - }) + rec.write({ + 'property_account_income_categ_id': None, + 'property_account_expense_categ_id': None, + 'property_account_creditor_price_difference_categ': None, + 'property_stock_account_input_categ_id': None, + 'property_stock_account_output_categ_id': None, + 'property_stock_valuation_account_id': None, + }) except Exception as e: pass # 产品处理 try: rec = self.env['product.template'].search([]) - for r in rec: - r.write({ - 'property_account_income_id': None, - 'property_account_expense_id': None, - }) + rec.write({ + 'property_account_income_id': None, + 'property_account_expense_id': None, + }) except Exception as e: pass # 库存计价处理 try: rec = self.env['stock.location'].search([]) - for r in rec: - r.write({ - 'valuation_in_account_id': None, - 'valuation_out_account_id': None, - }) + rec.write({ + 'valuation_in_account_id': None, + 'valuation_out_account_id': None, + }) except Exception as e: pass # raise Warning(e) - + seqs = [] res = self.remove_app_data(to_removes, seqs) - self.env.company.write({'chart_template_id': False}) + self._cr.commit() + if self.env.company.chart_template_id: + self.env.company.sudo().write({'chart_template_id': False}) return res def remove_project(self): diff --git a/l10n_cn_standard_latest/__manifest__.py b/l10n_cn_standard_latest/__manifest__.py index ae13d8ea..eb6f9cb1 100644 --- a/l10n_cn_standard_latest/__manifest__.py +++ b/l10n_cn_standard_latest/__manifest__.py @@ -9,7 +9,7 @@ { 'name': '2020最新中国企业会计表.Latest Chinese Accounting.', - 'version': '13.20.10.30', + 'version': '13.21.11.07', 'author': 'Sunpop.cn', 'category': 'Localization', 'website': 'https://www.sunpop.cn', diff --git a/l10n_cn_standard_latest/data/account.account.template.csv b/l10n_cn_standard_latest/data/account.account.template.csv index 1595db01..fdf5b0dd 100644 --- a/l10n_cn_standard_latest/data/account.account.template.csv +++ b/l10n_cn_standard_latest/data/account.account.template.csv @@ -1,4 +1,6 @@ id,code,name,parent_id/id,reconcile,user_type_id/id,group_id/id,tag_ids/id,chart_template_id/id +account_1001,1001,库存现金,,TRUE,account.data_account_type_liquidity,account_group_1,,l10n_chart_china_standard_business_latest +account_1002,1002,银行存款,,TRUE,account.data_account_type_liquidity,account_group_1,tag21,l10n_chart_china_standard_business_latest account_1003,1003,存放中央银行款项,,TRUE,account.data_account_type_current_assets,account_group_1,tag21,l10n_chart_china_standard_business_latest account_1011,1011,存放同业,,FALSE,account.data_account_type_current_assets,account_group_1,tag21,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 @@ -99,7 +101,7 @@ account_2221_6,2221.06,应交所得税,account_2221,FALSE,account.data_account_t 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_10,2221.1,应交土地使用税,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 @@ -124,7 +126,7 @@ account_2711,2711,专项应付款,,FALSE,account.data_account_type_current_liabi 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,account.data_account_off_sheet,account_group_3,tag21,l10n_chart_china_standard_business_latest -account_3002,3002,货币兑换,,FALSE,account.data_account_off_sheet,account_group_3,tag23,l10n_chart_china_standard_business_latest +account_3002,3002,外汇买卖,,FALSE,account.data_account_off_sheet,account_group_3,tag23,l10n_chart_china_standard_business_latest account_3101,3101,衍生工具,,FALSE,account.data_account_off_sheet,account_group_3,,l10n_chart_china_standard_business_latest account_3201,3201,套期工具,,FALSE,account.data_account_off_sheet,account_group_3,,l10n_chart_china_standard_business_latest account_3202,3202,被套期项目,,FALSE,account.data_account_off_sheet,account_group_3,,l10n_chart_china_standard_business_latest @@ -135,13 +137,13 @@ account_4102,4102,一般风险准备,,FALSE,account.data_account_type_equity,acc 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,account.data_account_off_sheet,account_group_5,,l10n_chart_china_standard_business_latest -account_5101,5101,制造费用,,FALSE,account.data_account_off_sheet,account_group_5,,l10n_chart_china_standard_business_latest -account_5201,5201,劳务成本,,FALSE,account.data_account_off_sheet,account_group_5,,l10n_chart_china_standard_business_latest -account_5301,5301,研发支出,,FALSE,account.data_account_off_sheet,account_group_5,,l10n_chart_china_standard_business_latest -account_5401,5401,工程施工,,FALSE,account.data_account_off_sheet,account_group_5,tag30,l10n_chart_china_standard_business_latest -account_5402,5402,工程结算,,FALSE,account.data_account_off_sheet,account_group_5,tag30,l10n_chart_china_standard_business_latest -account_5403,5403,机械作业,,FALSE,account.data_account_off_sheet,account_group_5,tag30,l10n_chart_china_standard_business_latest +account_5001,5001,生产成本,,FALSE,account.data_account_type_direct_costs,account_group_5,,l10n_chart_china_standard_business_latest +account_5101,5101,制造费用,,FALSE,account.data_account_type_direct_costs,account_group_5,,l10n_chart_china_standard_business_latest +account_5201,5201,劳务成本,,FALSE,account.data_account_type_direct_costs,account_group_5,,l10n_chart_china_standard_business_latest +account_5301,5301,研发支出,,FALSE,account.data_account_type_direct_costs,account_group_5,,l10n_chart_china_standard_business_latest +account_5401,5401,工程施工,,FALSE,account.data_account_type_direct_costs,account_group_5,tag30,l10n_chart_china_standard_business_latest +account_5402,5402,工程结算,,FALSE,account.data_account_type_direct_costs,account_group_5,tag30,l10n_chart_china_standard_business_latest +account_5403,5403,机械作业,,FALSE,account.data_account_type_direct_costs,account_group_5,tag30,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,tag23,l10n_chart_china_standard_business_latest account_6021,6021,手续费及佣金收入,,FALSE,account.data_account_type_revenue,account_group_6,tag23,l10n_chart_china_standard_business_latest diff --git a/l10n_cn_standard_latest/data/account.group.csv b/l10n_cn_standard_latest/data/account.group.csv index a46e95c4..9f7da706 100644 --- a/l10n_cn_standard_latest/data/account.group.csv +++ b/l10n_cn_standard_latest/data/account.group.csv @@ -1,7 +1,7 @@ "id","code_prefix","name" "account_group_1","1","资产类" "account_group_2","2","负债类" -"account_group_3","3","共有类" +"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_latest/data/src/1account.account.template.csv b/l10n_cn_standard_latest/data/src/1account.account.template.csv index 5f984764..086c3c36 100644 --- a/l10n_cn_standard_latest/data/src/1account.account.template.csv +++ b/l10n_cn_standard_latest/data/src/1account.account.template.csv @@ -1,176 +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 +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_latest/models/account_journal.py b/l10n_cn_standard_latest/models/account_journal.py index e9264e1e..9bc0e7e6 100644 --- a/l10n_cn_standard_latest/models/account_journal.py +++ b/l10n_cn_standard_latest/models/account_journal.py @@ -9,17 +9,6 @@ class AccountJournal(models.Model): @api.model def _prepare_liquidity_account(self, name, company, currency_id, type): - ''' - This function prepares the value to use for the creation of the default debit and credit accounts of a - liquidity journal (created through the wizard of generating COA from templates for example). - - :param name: name of the bank account - :param company: company for which the wizard is running - :param currency_id: ID of the currency in which is the bank account - :param type: either 'cash' or 'bank' - :return: mapping of field names and values - :rtype: dict - ''' digits = 6 chart = self.company_id.chart_template_id if chart: @@ -30,6 +19,8 @@ class AccountJournal(models.Model): else: account_code_prefix = company.cash_account_code_prefix or company.bank_account_code_prefix or '' digits = len(account_code_prefix) + # 获取上级 + p_account = self.env['account.account'].search([('code', '=', account_code_prefix), ('company_id', '=', company.id)], limit=1) liquidity_type = self.env.ref('account.data_account_type_liquidity') return { @@ -37,5 +28,8 @@ class AccountJournal(models.Model): 'currency_id': currency_id or False, 'code': self.env['account.account']._search_new_account_code(company, digits, account_code_prefix), 'user_type_id': liquidity_type and liquidity_type.id or False, + 'parent_id': p_account and p_account.id or False, + 'group_id': p_account and p_account.group_id and p_account.group_id.id or False, 'company_id': company.id, } +