From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/l10n_th/__init__.py | 7 + addons/l10n_th/__manifest__.py | 31 ++ addons/l10n_th/data/account.account.template.csv | 28 + .../l10n_th/data/account_chart_template_data.xml | 8 + addons/l10n_th/data/account_data.xml | 23 + addons/l10n_th/data/account_tax_report_data.xml | 134 +++++ addons/l10n_th/data/account_tax_template_data.xml | 582 +++++++++++++++++++++ addons/l10n_th/data/l10n_th_chart_data.xml | 20 + addons/l10n_th/data/l10n_th_chart_post_data.xml | 12 + addons/l10n_th/demo/demo_company.xml | 34 ++ addons/l10n_th/static/description/icon.png | Bin 0 -> 271 bytes 11 files changed, 879 insertions(+) create mode 100644 addons/l10n_th/__init__.py create mode 100644 addons/l10n_th/__manifest__.py create mode 100644 addons/l10n_th/data/account.account.template.csv create mode 100644 addons/l10n_th/data/account_chart_template_data.xml create mode 100644 addons/l10n_th/data/account_data.xml create mode 100644 addons/l10n_th/data/account_tax_report_data.xml create mode 100644 addons/l10n_th/data/account_tax_template_data.xml create mode 100644 addons/l10n_th/data/l10n_th_chart_data.xml create mode 100644 addons/l10n_th/data/l10n_th_chart_post_data.xml create mode 100644 addons/l10n_th/demo/demo_company.xml create mode 100644 addons/l10n_th/static/description/icon.png (limited to 'addons/l10n_th') diff --git a/addons/l10n_th/__init__.py b/addons/l10n_th/__init__.py new file mode 100644 index 00000000..1b8d7518 --- /dev/null +++ b/addons/l10n_th/__init__.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + + +def _preserve_tag_on_taxes(cr, registry): + from odoo.addons.account.models.chart_template import preserve_existing_tags_on_taxes + preserve_existing_tags_on_taxes(cr, registry, 'l10n_th') diff --git a/addons/l10n_th/__manifest__.py b/addons/l10n_th/__manifest__.py new file mode 100644 index 00000000..1aec0bc7 --- /dev/null +++ b/addons/l10n_th/__manifest__.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +{ + 'name': 'Thailand - Accounting', + 'version': '2.0', + 'category': 'Accounting/Localizations/Account Charts', + 'description': """ +Chart of Accounts for Thailand. +=============================== + +Thai accounting chart and localization. + """, + 'author': 'Almacom', + 'website': 'http://almacom.co.th/', + 'depends': ['account'], + 'data': [ + 'data/account_data.xml', + 'data/l10n_th_chart_data.xml', + 'data/account.account.template.csv', + 'data/l10n_th_chart_post_data.xml', + 'data/account_tax_report_data.xml', + 'data/account_tax_template_data.xml', + 'data/account_chart_template_data.xml', + ], + 'demo': [ + 'demo/demo_company.xml', + ], + 'post_init_hook': '_preserve_tag_on_taxes', + 'license': 'LGPL-3', +} diff --git a/addons/l10n_th/data/account.account.template.csv b/addons/l10n_th/data/account.account.template.csv new file mode 100644 index 00000000..b4c5be60 --- /dev/null +++ b/addons/l10n_th/data/account.account.template.csv @@ -0,0 +1,28 @@ +"id","name","code","user_type_id/id","chart_template_id/id","reconcile" +"a_recv","Account Receivable","1200","account.data_account_type_receivable","l10n_th.chart","True" +"a_recv_pos","Account Receivable (PoS)","1210","account.data_account_type_receivable","l10n_th.chart","True" +"a_cheque","Outstanding Cheques","1201","account.data_account_type_current_liabilities","l10n_th.chart","True" +"a_invent","Inventory","1300","account.data_account_type_current_assets","l10n_th.chart","False" +"a_building_depr","Accumulated Depreciation - Building","1411","account.data_account_type_depreciation","l10n_th.chart","False" +"a_equipment_dept","Accumulated Depreciation - Equipment","1421","account.data_account_type_depreciation","l10n_th.chart","False" +"a_input_vat","Input VAT","1510","account.data_account_type_current_assets","l10n_th.chart","False" +"a_wht_income","Withholding Income Tax","1520","account.data_account_type_current_assets","l10n_th.chart","False" +"a_pay","Account Payable","2101","account.data_account_type_payable","l10n_th.chart","True" +"a_accr_exp","Accrued Expenses","2102","account.data_account_type_current_liabilities","l10n_th.chart","True" +"a_uninvoiced_receipts","Uninvoiced Receipts","2103","account.data_account_type_current_liabilities","l10n_th.chart","True" +"a_loan","Loans","2200","account.data_account_type_current_liabilities","l10n_th.chart","True" +"a_output_vat","Output VAT","2310","account.data_account_type_current_liabilities","l10n_th.chart","False" +"a_wht","Withholding Tax","2320","account.data_account_type_current_liabilities","l10n_th.chart","False" +"a_common_stock","Capital Stock","3100","account.data_account_type_equity","l10n_th.chart","False" +"a_retained_earnings","Retained Earnings","3200","account.data_account_type_equity","l10n_th.chart","False" +"a_dividends","Dividends","3300","account.data_account_type_equity","l10n_th.chart","False" +"a_income_summary","Income Summary","3400","account.data_account_type_equity","l10n_th.chart","False" +"a_sales","Income","4100","account.data_account_type_revenue","l10n_th.chart","False" +"a_income_gain","Gain Account","4200","account.data_account_type_other_income","l10n_th.chart","False" +"a_exp_cogs","Cost of Revenue","5100","account.data_account_type_direct_costs","l10n_th.chart","False" +"a_exp_salary","Salary","5201","account.data_account_type_expenses","l10n_th.chart","False" +"a_exp_rent","Rent","5202","account.data_account_type_expenses","l10n_th.chart","False" +"a_exp_office","Office Expenses","5203","account.data_account_type_expenses","l10n_th.chart","False" +"a_exp_interest","Interest expenses","5300","account.data_account_type_expenses","l10n_th.chart","False" +"a_exp_income_tax","Income tax expenses","5400","account.data_account_type_expenses","l10n_th.chart","False" +"a_exp_loss","Loss Account","5500","account.data_account_type_expenses","l10n_th.chart","False" diff --git a/addons/l10n_th/data/account_chart_template_data.xml b/addons/l10n_th/data/account_chart_template_data.xml new file mode 100644 index 00000000..942a9fff --- /dev/null +++ b/addons/l10n_th/data/account_chart_template_data.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/addons/l10n_th/data/account_data.xml b/addons/l10n_th/data/account_data.xml new file mode 100644 index 00000000..4b6cc21a --- /dev/null +++ b/addons/l10n_th/data/account_data.xml @@ -0,0 +1,23 @@ + + + + + + + TAX 1% + + + TAX 2% + + + TAX 3% + + + TAX 5% + + + VAT 7% + + + + diff --git a/addons/l10n_th/data/account_tax_report_data.xml b/addons/l10n_th/data/account_tax_report_data.xml new file mode 100644 index 00000000..df672097 --- /dev/null +++ b/addons/l10n_th/data/account_tax_report_data.xml @@ -0,0 +1,134 @@ + + + + + Tax Report + + + + + Output Tax + + + + + + 1. Sales amount + 1. Sales amount + OUTPUTTAX_SALEAMOUNT + + + + + + + 2. Less sales subject to 0% tax rate + 2. Less sales subject to 0% tax rate + OUTPUTTAX_SALE_ZERO + + + + + + + 3. Less exempted sales + 3. Less exempted sales + OUTPUTTAX_EXEMPTED + + + + + + + 4. Taxable sales amount(1. -2. -3.) + + + + OUTPUTTAX_SALEAMOUNT-(OUTPUTTAX_SALE_ZERO+OUTPUTTAX_EXEMPTED) + + + + 5. Output tax + 5. Output tax + OUTPUTTAX_TAX + + + + + + + Input Tax + INPUTTAX + + + + + + 6. Purchase amount that is entitled to deduction of input tax from output tax in tax computation + 6. Purchase amount that is entitled to deduction of input tax from output tax in tax computation + + + + + + + 7. Input tax (according to invoice of purchase amount in 6.) + 7. Input tax (according to invoice of purchase amount in 6.) + INPUTTAX_TAX + + + + + + + Value Added Tax + + + + + + 8. Tax payable (5. minus 7. (if 5. is greater than 7.)) + + + + OUTPUTTAX_TAX - INPUTTAX_TAX if (OUTPUTTAX_TAX > INPUTTAX_TAX) else 0 + + + + 9. Excess tax payable (7. minus 5. (if 5. is less than 7.)) + + + + INPUTTAX_TAX - OUTPUTTAX_TAX if (INPUTTAX_TAX > OUTPUTTAX_TAX) else 0 + + + + 10. Excess tax payment carried forward from last period + + + + + + + Net Tax + + + + + + 11. Net tax payable (if 8. is greater than 10.) + 11. Net tax payable (if 8. is greater than 10.) + + + + + + + 12. Net excess tax payable ((if 10. is greater than 8.) or (9. plus 10.)) + 12. Net excess tax payable ((if 10. is greater than 8.) or (9. plus 10.)) + + + + + + diff --git a/addons/l10n_th/data/account_tax_template_data.xml b/addons/l10n_th/data/account_tax_template_data.xml new file mode 100644 index 00000000..970a1ef3 --- /dev/null +++ b/addons/l10n_th/data/account_tax_template_data.xml @@ -0,0 +1,582 @@ + + + + + + Input VAT 7% + percent + + purchase + + + + + + + + Output VAT 7% + percent + + sale + + + + + + + + Input VAT 0% + percent + + purchase + + + + + + + Output VAT 0% + percent + + sale + + + + + + + Input VAT Exempted + percent + + purchase + + + + + + + Output VAT Exempted + percent + + sale + + + + + + + Company Withholding Tax 1% (Transportation) + percent + + purchase + + + + + + + + Company Withholding Tax 2% (Advertising) + percent + + purchase + + + + + + + + Company Withholding Tax 3% (Service) + percent + + purchase + + + + + + + + Company Withholding Tax 5% (Rental) + percent + + purchase + + + + + + + + Personal Withholding Tax 1% (Transportation) + percent + + purchase + + + + + + + + Personal Withholding Tax 2% (Advertising) + percent + + purchase + + + + + + + + Personal Withholding Tax 3% (Service) + percent + + purchase + + + + + + + + Personal Withholding Tax 5% (Rental) + percent + + purchase + + + + + + + + Withholding Income Tax 1% (Transportation) + percent + + sale + + + + + + + + Withholding Income Tax 2% (Advertising) + percent + + sale + + + + + + + + Withholding Income Tax 3% (Service) + percent + + sale + + + + + + + + Withholding Income Tax 5% (Rental) + percent + + sale + + + + + + diff --git a/addons/l10n_th/data/l10n_th_chart_data.xml b/addons/l10n_th/data/l10n_th_chart_data.xml new file mode 100644 index 00000000..36a6c23c --- /dev/null +++ b/addons/l10n_th/data/l10n_th_chart_data.xml @@ -0,0 +1,20 @@ + + + + + + + Reconciled + off_balance + + + + + + Thailand - Chart of Accounts + 1100 + 1110 + 16 + + + diff --git a/addons/l10n_th/data/l10n_th_chart_post_data.xml b/addons/l10n_th/data/l10n_th_chart_post_data.xml new file mode 100644 index 00000000..606e9091 --- /dev/null +++ b/addons/l10n_th/data/l10n_th_chart_post_data.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/addons/l10n_th/demo/demo_company.xml b/addons/l10n_th/demo/demo_company.xml new file mode 100644 index 00000000..9aa6fce1 --- /dev/null +++ b/addons/l10n_th/demo/demo_company.xml @@ -0,0 +1,34 @@ + + + + TH Company + + A5 + บ้านสันทราย + + + 50220 + +66 81 234 5678 + info@company.thexample.com + www.thexample.com + + + + TH Company + + + + + + + + + + + + + + + + + diff --git a/addons/l10n_th/static/description/icon.png b/addons/l10n_th/static/description/icon.png new file mode 100644 index 00000000..c7003b0d Binary files /dev/null and b/addons/l10n_th/static/description/icon.png differ -- cgit v1.2.3