From 0282fc16791f50a4a4454a8ffde52f3a421dff4d Mon Sep 17 00:00:00 2001 From: pvy Date: Tue, 18 Aug 2015 12:00:24 +0200 Subject: [PATCH] [FIX] l10n_th is back, compliant with the new accounting --- addons/l10n_th/__openerp__.py | 9 +- addons/l10n_th/account_chart_template.yml | 3 + addons/l10n_th/account_data.xml | 392 +++++++++++++--------- 3 files changed, 235 insertions(+), 169 deletions(-) create mode 100644 addons/l10n_th/account_chart_template.yml diff --git a/addons/l10n_th/__openerp__.py b/addons/l10n_th/__openerp__.py index 2be68df177c..eb17c8d1375 100644 --- a/addons/l10n_th/__openerp__.py +++ b/addons/l10n_th/__openerp__.py @@ -13,7 +13,10 @@ Thai accounting chart and localization. """, 'author': 'Almacom', 'website': 'http://almacom.co.th/', - 'depends': [], - 'data': [ 'account_data.xml' ], - 'installable': False, + 'depends': ['account'], + 'data': [ + 'account_data.xml', + 'account_chart_template.yml', + ], + 'installable': True, } diff --git a/addons/l10n_th/account_chart_template.yml b/addons/l10n_th/account_chart_template.yml new file mode 100644 index 00000000000..99bbac243aa --- /dev/null +++ b/addons/l10n_th/account_chart_template.yml @@ -0,0 +1,3 @@ +- + !python {model: account.chart.template, id: chart}: | + self[0].try_loading_for_current_company() diff --git a/addons/l10n_th/account_data.xml b/addons/l10n_th/account_data.xml index 69793e75bce..9137a65039a 100644 --- a/addons/l10n_th/account_data.xml +++ b/addons/l10n_th/account_data.xml @@ -1,12 +1,8 @@ - - + + - - View - - Reconciled @@ -15,397 +11,461 @@ Other - + - - 0 - Simple chart of accounts - + + Transfer Account + 16 + + + + + Thailand - Chart of Accounts + + + + + - - 1 - Assets - - - - - 1100 - Cash - - - - - 1110 - Cash at Bank - - - - - 1120 - Petty Cash - - 1200 Account Receivable - + + 1201 Outstanding Cheques - + + 1300 Inventory - - - - - 1410 - Building - + + 1411 Accumulated Depreciation - Building - - - - - 1420 - Equipment - + + 1421 Accumulated Depreciation - Equipment - + + 1510 Input VAT - + + 1520 Withholding Income Tax - + + - - 2 - Liabilities - - - 2101 Account Payable - + + 2102 Accrued Expenses - + + 2103 Uninvoiced Receipts - + + 2200 Loans - + + 2310 Output VAT - + + 2320 Withholding Tax - + + - - 3 - Equity - - - 3100 Capital Stock - + + 3200 Retained Earnings - + + 3300 Dividends - + + 3400 Income Summary - + + - - 4 - Income - - - 4100 Income - + + + + + + 4200 + Gain Account + + - - 5 - Expenses - - - 5100 Cost of goods sold - + + 5201 Salary - + + 5202 Rent - + + 5203 Office Expenses - + + 5300 Interest expenses - + + 5400 Income tax expenses - + + - + + 5500 + Loss Account + + + + + - Thailand - Chart of Accounts - - - + - - - + + + 1100 + 1110 + + + + Input VAT 7% + taxes + + + + Output VAT 7% + taxes + + + + Company Tax 1% (Transportation) + taxes + + + + Company Tax 2% (Advertising) + taxes + + + + Company Tax 3% (Service) + taxes + + + + Company Tax 5% (Rental) + taxes + + + + Personal Tax 1% (Transportation) + taxes + + + + Personal Tax 2% (Advertising) + taxes + + + + Personal Tax 3% (Service) + taxes + + + + Personal Tax 5% (Rental) + taxes + + + + Income Tax 1% (Transportation) + taxes + + + + Income Tax 2% (Advertising) + taxes + + + + Income Tax 3% (Service) + taxes + + + + Income Tax 5% (Rental) + taxes + Input VAT - percent - - - + percent + + + purchase + Output VAT - percent - - - + percent + + + sale + Company Withholding Tax 1% (Transportation) - percent - - - + percent + + + purchase + Company Withholding Tax 2% (Advertising) - percent - - - + percent + + + purchase + Company Withholding Tax 3% (Service) - percent - - - + percent + + + purchase + Company Withholding Tax 5% (Rental) - percent - - - + percent + + + purchase + Personal Withholding Tax 1% (Transportation) - percent - - - + percent + + + purchase + Personal Withholding Tax 2% (Advertising) - percent - - - + percent + + + purchase + Personal Withholding Tax 3% (Service) - percent - - - + percent + + + purchase + Personal Withholding Tax 5% (Rental) - percent - - - + percent + + + purchase + Withholding Income Tax 1% (Transportation) - percent - - - + percent + + + sale + Withholding Income Tax 2% (Advertising) - percent - - - + percent + + + sale + Withholding Income Tax 3% (Service) - percent - - - + percent + + + sale + Withholding Income Tax 5% (Rental) - percent - - - + percent + + + sale + - - - - - open - - - +