From 5ef7db8c3caf6fe611998532cd2939dee5c49116 Mon Sep 17 00:00:00 2001 From: Hetashree Chauhan Date: Wed, 21 Nov 2018 05:24:28 +0000 Subject: [PATCH] [IMP] l10n_hk: switch account.account.template creation in csv data creation is faster when done through a CSV file compared to an XML file. Hence doing it through a CSV This commit is related to task_id : 1909961. closes odoo/odoo#28895 --- addons/l10n_hk/__manifest__.py | 1 + .../l10n_hk/data/account.account.template.csv | 67 +++ addons/l10n_hk/data/l10n_hk_chart_data.xml | 505 ------------------ 3 files changed, 68 insertions(+), 505 deletions(-) create mode 100644 addons/l10n_hk/data/account.account.template.csv diff --git a/addons/l10n_hk/__manifest__.py b/addons/l10n_hk/__manifest__.py index 240f3d044e7..19f92fbd47a 100644 --- a/addons/l10n_hk/__manifest__.py +++ b/addons/l10n_hk/__manifest__.py @@ -10,6 +10,7 @@ 'depends': ['account'], 'data': [ 'data/account_chart_template_data.xml', + 'data/account.account.template.csv', 'data/l10n_hk_chart_data.xml', 'data/account_chart_template_configure_data.xml', ], diff --git a/addons/l10n_hk/data/account.account.template.csv b/addons/l10n_hk/data/account.account.template.csv new file mode 100644 index 00000000000..e74de9ce3fb --- /dev/null +++ b/addons/l10n_hk/data/account.account.template.csv @@ -0,0 +1,67 @@ +"id","name","code","user_type_id/id","chart_template_id/id","tag_ids/id","reconcile" +"l10n_hk_11","Fixed Assets","11","account.data_account_type_fixed_assets","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_1110","Furniture and Fixtures","1110","account.data_account_type_non_current_assets","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_1130","Equipment","1130","account.data_account_type_non_current_assets","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_1140","Decoration","1140","account.data_account_type_non_current_assets","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_1160","Investments","1160","account.data_account_type_non_current_assets","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_12","Current Assets","12","account.data_account_type_current_assets","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_1240","Account Receivable","1240","account.data_account_type_receivable","l10n_hk.l10n_hk_chart_template","","True" +"l10n_hk_1241","Utility & Rental Deposit","1241","account.data_account_type_current_assets","l10n_hk.l10n_hk_chart_template","","True" +"l10n_hk_1242","Supplier Prepayments","1242","account.data_account_type_current_assets","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_1245","Sundry Deposits","1245","account.data_account_type_current_assets","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_1246","Other Receivable","1246","account.data_account_type_receivable","l10n_hk.l10n_hk_chart_template","","True" +"l10n_hk_1250","Stock Interim Account (Received)","1250","account.data_account_type_current_assets","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_1260","Stock Interim Account (Delivered)","1260","account.data_account_type_current_assets","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_1270","Stock Valuation Account","1270","account.data_account_type_current_assets","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_21","Non-current Liabilities","21","account.data_account_type_non_current_liabilities","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_22","Current Liabilities","22","account.data_account_type_current_liabilities","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_2210","Accruals","2210","account.data_account_type_current_liabilities","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_2211","Account Payable","2211","account.data_account_type_payable","l10n_hk.l10n_hk_chart_template","","True" +"l10n_hk_2212","Receipt in Advance (Customer Prepayments)","2212","account.data_account_type_current_liabilities","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_2214","Provision for Taxation","2214","account.data_account_type_current_liabilities","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_2215","Proposed Dividend","2215","account.data_account_type_current_liabilities","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_2216","Other Payable","2216","account.data_account_type_payable","l10n_hk.l10n_hk_chart_template","","True" +"l10n_hk_31","Paid Capital","31","account.data_account_type_current_liabilities","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_32","Accumulated Profit & Loss","32","account.data_account_type_current_liabilities","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_33","Profit & Loss Account","33","account.data_account_type_current_liabilities","l10n_hk.l10n_hk_chart_template","","False" +"l10n_hk_41","Trade Income","41","account.data_account_type_revenue","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_42","Other Income and Gains","42","account.data_account_type_revenue","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_4210","Sundry Income","4210","account.data_account_type_revenue","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_4220","Exchange Adjustment","4220","account.data_account_type_revenue","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_4230","Bank Interest Income","4230","account.data_account_type_revenue","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_4240","Foreign Exchange Gain","4240","account.data_account_type_revenue","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_51","Costs","51","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5101","Trade Costs","5101","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5105","Misc. Costs","5105","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5106","Costs of Transportation","5106","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5111","Declaration Fees","5111","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5112","Packing Fees","5112","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_52","Expenses","52","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5201","Bank Charges","5201","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5202","Entertainment","5202","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5203","Electricity & Water Fees","5203","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5205","Postage & Stamps","5205","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5206","Printing & Stationery","5206","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5207","Rent & Rates","5207","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5208","Sundry Expenses","5208","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5209","Telecommunication Expenses","5209","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5210","Traffic Fees","5210","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5211","IT Expenses","5211","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5214","Insurance","5214","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5215","Sales Commission","5215","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5216","Overseas Traveling","5216","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5217","MPF Contribution","5217","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5218","Wages & Salaries","5218","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5219","Bonus Payment","5219","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5221","Taxation","5221","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5222","Local Delivery","5222","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5223","Management Fees","5223","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5224","Depreciation","5224","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5225","Audit Fees","5225","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5226","Bad Debts","5226","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5228","Legal & Professional Fees","5228","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5229","Dividend","5229","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5231","Disposal","5231","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5234","Repair and Maintenance","5234","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5235","Advertising","5235","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" +"l10n_hk_5240","Foreign Exchange Loss","5240","account.data_account_type_expenses","l10n_hk.l10n_hk_chart_template","account.account_tag_operating","False" \ No newline at end of file diff --git a/addons/l10n_hk/data/l10n_hk_chart_data.xml b/addons/l10n_hk/data/l10n_hk_chart_data.xml index 1d5ced02947..7feed736f36 100644 --- a/addons/l10n_hk/data/l10n_hk_chart_data.xml +++ b/addons/l10n_hk/data/l10n_hk_chart_data.xml @@ -1,511 +1,6 @@ - - - Fixed Assets - 11 - - - - - - Furniture and Fixtures - 1110 - - - - - - Equipment - 1130 - - - - - - Decoration - 1140 - - - - - - Investments - 1160 - - - - - - Current Assets - 12 - - - - - - Account Receivable - 1240 - - - - - - Utility & Rental Deposit - 1241 - - - - - - Supplier Prepayments - 1242 - - - - - - Sundry Deposits - 1245 - - - - - - Other Receivable - 1246 - - - - - - Stock Interim Account (Received) - 1250 - - - - - - Stock Interim Account (Delivered) - 1260 - - - - - - Stock Valuation Account - 1270 - - - - - - Non-current Liabilities - 21 - - - - - - Current Liabilities - 22 - - - - - - Accruals - 2210 - - - - - - Account Payable - 2211 - - - - - - Receipt in Advance (Customer Prepayments) - 2212 - - - - - - Provision for Taxation - 2214 - - - - - - Proposed Dividend - 2215 - - - - - - Other Payable - 2216 - - - - - - Paid Capital - 31 - - - - - - Accumulated Profit & Loss - 32 - - - - - - Profit & Loss Account - 33 - - - - - - Trade Income - 41 - - - - - - - Other Income and Gains - 42 - - - - - - - Sundry Income - 4210 - - - - - - - Exchange Adjustment - 4220 - - - - - - - Bank Interest Income - 4230 - - - - - - - Foreign Exchange Gain - 4240 - - - - - - - Costs - 51 - - - - - - - Trade Costs - 5101 - - - - - - - Misc. Costs - 5105 - - - - - - - Costs of Transportation - 5106 - - - - - - - Declaration Fees - 5111 - - - - - - - Packing Fees - 5112 - - - - - - - Expenses - 52 - - - - - - - Bank Charges - 5201 - - - - - - - Entertainment - 5202 - - - - - - - Electricity & Water Fees - 5203 - - - - - - - Postage & Stamps - 5205 - - - - - - - Printing & Stationery - 5206 - - - - - - - Rent & Rates - 5207 - - - - - - - Sundry Expenses - 5208 - - - - - - - Telecommunication Expenses - 5209 - - - - - - - Traffic Fees - 5210 - - - - - - - IT Expenses - 5211 - - - - - - - Insurance - 5214 - - - - - - - Sales Commission - 5215 - - - - - - - Overseas Traveling - 5216 - - - - - - - MPF Contribution - 5217 - - - - - - - Wages & Salaries - 5218 - - - - - - - Bonus Payment - 5219 - - - - - - - Taxation - 5221 - - - - - - - Local Delivery - 5222 - - - - - - - Management Fees - 5223 - - - - - - - Depreciation - 5224 - - - - - - - Audit Fees - 5225 - - - - - - - Bad Debts - 5226 - - - - - - - Legal & Professional Fees - 5228 - - - - - - - Dividend - 5229 - - - - - - - Disposal - 5231 - - - - - - - Repair and Maintenance - 5234 - - - - - - - Advertising - 5235 - - - - - - - Foreign Exchange Loss - 5240 - - - - - - Hong Kong - Chart of Accounts