From e7e38e5fa5add27f939db8edabebada3c3a077b0 Mon Sep 17 00:00:00 2001 From: Hetashree Chauhan Date: Tue, 20 Nov 2018 12:35:48 +0000 Subject: [PATCH] [IMP] l10n_ca: 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#28890 --- addons/l10n_ca/__manifest__.py | 2 +- .../l10n_ca/data/account.account.template.csv | 67 +++ addons/l10n_ca/data/l10n_ca_chart_data.xml | 489 ------------------ 3 files changed, 68 insertions(+), 490 deletions(-) create mode 100644 addons/l10n_ca/data/account.account.template.csv delete mode 100644 addons/l10n_ca/data/l10n_ca_chart_data.xml diff --git a/addons/l10n_ca/__manifest__.py b/addons/l10n_ca/__manifest__.py index af125a26f02..c766a07f65d 100644 --- a/addons/l10n_ca/__manifest__.py +++ b/addons/l10n_ca/__manifest__.py @@ -40,7 +40,7 @@ position. ], 'data': [ 'data/account_chart_template_data.xml', - 'data/l10n_ca_chart_data.xml', + 'data/account.account.template.csv', 'data/account_chart_template_after_data.xml', 'data/account_data.xml', 'data/account_tax_data.xml', diff --git a/addons/l10n_ca/data/account.account.template.csv b/addons/l10n_ca/data/account.account.template.csv new file mode 100644 index 00000000000..552031ee2ee --- /dev/null +++ b/addons/l10n_ca/data/account.account.template.csv @@ -0,0 +1,67 @@ +"id","name","code","user_type_id/id","chart_template_id/id","reconcile" +"chart1141_en","Stock In Hand","1141","account.data_account_type_current_assets","l10n_ca.ca_en_chart_template_en","False" +"chart1145_en","Stock Delivered But Not Billed","1145","account.data_account_type_current_assets","l10n_ca.ca_en_chart_template_en","False" +"chart1151_en","Customers Account","1151","account.data_account_type_receivable","l10n_ca.ca_en_chart_template_en","True" +"chart1181_en","GST receivable","1181","account.data_account_type_current_assets","l10n_ca.ca_en_chart_template_en","False" +"chart1182_en","PST/QST receivable","1182","account.data_account_type_current_assets","l10n_ca.ca_en_chart_template_en","False" +"chart11831_en","HST receivable - 13%","11831","account.data_account_type_current_assets","l10n_ca.ca_en_chart_template_en","False" +"chart11832_en","HST receivable - 14%","11832","account.data_account_type_current_assets","l10n_ca.ca_en_chart_template_en","False" +"chart11833_en","HST receivable - 15%","11833","account.data_account_type_current_assets","l10n_ca.ca_en_chart_template_en","False" +"chart2111_en","Vendors Account","2111","account.data_account_type_payable","l10n_ca.ca_en_chart_template_en","True" +"chart2131_en","GST to pay","2131","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart2132_en","PST/QST to pay","2132","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart21331_en","HST to pay - 13%","21331","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart21332_en","HST to pay - 14%","21332","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart21333_en","HST to pay - 15%","21333","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart2141_en","CANADA REVENUE AGENCY","2141","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart214111_en","EI - Employees Contribution","214111","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart214112_en","EI - Employer Contribution","214112","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart21412_en","Federal Income Tax","21412","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart214131_en","CPP - Employees Contribution","214131","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart214132_en","CPP - Employer Contribution","214132","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart21421_en","Health Services Fund to pay","21421","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart214221_en","Provincial Pension Plan - Employees Contribution","214221","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart214222_en","Provincial Pension Plan - Employer Contribution","214222","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart214231_en","Parental Insurance Plan - Employee Contribution","214231","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart214232_en","Parental Insurance Plan - Employer Contribution","214232","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart21424_en","Labour Health and Safety to pay","21424","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart21425_en","Labour Standards to pay","21425","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart21426_en","Provincial Income Tax","21426","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart2171_en","Stock Received But Not Billed","2171","account.data_account_type_current_assets","l10n_ca.ca_en_chart_template_en","False" +"chart2181_en","Salaries to pay","2181","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart2183_en","Bonus to pay","2183","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart2184_en","Retroactive Payment to pay","2184","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart218501_en","Group Pension Plan to pay - Employees Contribution","218501","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart218502_en","Group Pension Plan to pay - Employer Contribution","218502","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart218601_en","Employee Benefits Provision - Employees Contribution","218601","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart218602_en","Employee Benefits Provision - Employer Contribution","218602","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart2521_en","Provision for pension plans","2521","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart254101_en","Vacations Accrued","254101","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart254102_en","Compensatory Days Accrued","254102","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart254103_en","Sick Leaves Accrued","254103","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart2542_en","Bonus Accrued","2542","account.data_account_type_current_liabilities","l10n_ca.ca_en_chart_template_en","False" +"chart411_en","Inside Sales","411","account.data_account_type_revenue","l10n_ca.ca_en_chart_template_en","False" +"chart412_en","Harmonized Provinces Sales","412","account.data_account_type_revenue","l10n_ca.ca_en_chart_template_en","False" +"chart413_en","Non-Harmonized Provinces Sales","413","account.data_account_type_revenue","l10n_ca.ca_en_chart_template_en","False" +"chart414_en","International Sales","414","account.data_account_type_revenue","l10n_ca.ca_en_chart_template_en","False" +"chart42_en","NON-OPERATING INCOMES","42","account.data_account_type_other_income","l10n_ca.ca_en_chart_template_en","False" +"chart5111_en","Inside Purchases","5111","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart5112_en","Purchases in harmonized provinces","5112","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart5113_en","Purchases in non-harmonized provinces","5113","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart5114_en","International Purchases","5114","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512101_en","Regular Salaries","512101","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512102_en","Bonus","512102","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512103_en","Retroactive Pay","512103","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512201_en","Vacations Accrued","512201","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512202_en","Compensatory Days Accrued","512202","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512203_en","Sick Leaves Accrued","512203","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512301_en","Canada Pension Plan","512301","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512302_en","Employment Insurance","512302","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512303_en","Group Pension Plan","512303","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512304_en","Employee benefits expense","512304","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512310_en","Provincial Pension Plan","512310","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512311_en","Provincial Parental Insurance Plan","512311","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512312_en","Labour Health and Safety","512312","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512313_en","Labour Standards","512313","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart512314_en","Health Service Fund","512314","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" +"chart55_en","NON-OPERATING EXPENSES","55","account.data_account_type_expenses","l10n_ca.ca_en_chart_template_en","False" diff --git a/addons/l10n_ca/data/l10n_ca_chart_data.xml b/addons/l10n_ca/data/l10n_ca_chart_data.xml deleted file mode 100644 index 64b7849d9f2..00000000000 --- a/addons/l10n_ca/data/l10n_ca_chart_data.xml +++ /dev/null @@ -1,489 +0,0 @@ - - - - - - - - - 1141 - - Stock In Hand - - - - - 1145 - - Stock Delivered But Not Billed - - - - - 1151 - - - Customers Account - - - - - 1181 - - - GST receivable - - - - - 1182 - - - PST/QST receivable - - - - - 11831 - - - HST receivable - 13% - - - - - 11832 - - - HST receivable - 14% - - - - - 11833 - - - HST receivable - 15% - - - - - - - 2111 - - - Vendors Account - - - - - 2131 - - - GST to pay - - - - - 2132 - - - PST/QST to pay - - - - - 21331 - - - HST to pay - 13% - - - - - 21332 - - - HST to pay - 14% - - - - - 21333 - - - HST to pay - 15% - - - - - 2141 - - CANADA REVENUE AGENCY - - - - - 214111 - - EI - Employees Contribution - - - - - 214112 - - EI - Employer Contribution - - - - - 21412 - - Federal Income Tax - - - - - 214131 - - CPP - Employees Contribution - - - - - 214132 - - CPP - Employer Contribution - - - - - 21421 - - Health Services Fund to pay - - - - - 214221 - - Provincial Pension Plan - Employees Contribution - - - - - 214222 - - Provincial Pension Plan - Employer Contribution - - - - - 214231 - - Parental Insurance Plan - Employee Contribution - - - - - 214232 - - Parental Insurance Plan - Employer Contribution - - - - - 21424 - - Labour Health and Safety to pay - - - - - 21425 - - Labour Standards to pay - - - - - 21426 - - Provincial Income Tax - - - - - 2171 - - Stock Received But Not Billed - - - - - 2181 - - Salaries to pay - - - - - 2183 - - Bonus to pay - - - - - 2184 - - Retroactive Payment to pay - - - - - 218501 - - Group Pension Plan to pay - Employees Contribution - - - - - 218502 - - Group Pension Plan to pay - Employer Contribution - - - - - 218601 - - Employee Benefits Provision - Employees Contribution - - - - - 218602 - - Employee Benefits Provision - Employer Contribution - - - - - 2521 - - Provision for pension plans - - - - - 254101 - - Vacations Accrued - - - - - 254102 - - Compensatory Days Accrued - - - - - 254103 - - Sick Leaves Accrued - - - - - 2542 - - Bonus Accrued - - - - - - - 411 - - Inside Sales - - - - - 412 - - Harmonized Provinces Sales - - - - - 413 - - Non-Harmonized Provinces Sales - - - - - 414 - - International Sales - - - - - 42 - - NON-OPERATING INCOMES - - - - - - - 5111 - - Inside Purchases - - - - - 5112 - - Purchases in harmonized provinces - - - - - 5113 - - Purchases in non-harmonized provinces - - - - - 5114 - - International Purchases - - - - - 512101 - - Regular Salaries - - - - - 512102 - - Bonus - - - - - 512103 - - Retroactive Pay - - - - - 512201 - - Vacations Accrued - - - - - 512202 - - Compensatory Days Accrued - - - - - 512203 - - Sick Leaves Accrued - - - - - 512301 - - Canada Pension Plan - - - - - 512302 - - Employment Insurance - - - - - 512303 - - Group Pension Plan - - - - - 512304 - - Employee benefits expense - - - - - 512310 - - Provincial Pension Plan - - - - - 512311 - - Provincial Parental Insurance Plan - - - - - 512312 - - Labour Health and Safety - - - - - 512313 - - Labour Standards - - - - - 512314 - - Health Service Fund - - - - - 55 - - NON-OPERATING EXPENSES - - - - -