From 637dbbd0a37eded895095a5fe88f776d1db7f542 Mon Sep 17 00:00:00 2001 From: Antoine Boonen Date: Mon, 14 Aug 2023 11:20:28 +0200 Subject: [PATCH] [ADD] l10n_ug: Base configuration for Uganda Problem --------- There is currently no localization for Uganda. Objective --------- Add the base localization for Uganda: - Chart of accounts - Taxes - Fiscal positions - Default settings - Tax reports Solution --------- Create a new localization and set up all basic required information: - tax and tax groups, CoA and fiscal positions are defined in CSVs. Details have been obtained in documents (for details about those documents, refer to the task). - demo data is generated (it uses a random address) - default accounts and value are set up for the company - Profit and loss report and balance sheet use the generic template - Tax report has been made following the template provided by the URA task-3340378 Part-of: odoo/odoo#131877 --- addons/l10n_ug/__init__.py | 3 + addons/l10n_ug/__manifest__.py | 27 + .../l10n_ug/data/account_tax_report_data.xml | 590 ++++++++++++++++++ .../data/template/account.account-ug.csv | 125 ++++ .../template/account.fiscal.position-ug.csv | 14 + .../l10n_ug/data/template/account.tax-ug.csv | 81 +++ .../data/template/account.tax.group-ug.csv | 2 + addons/l10n_ug/demo/demo_company.xml | 35 ++ addons/l10n_ug/models/__init__.py | 3 + addons/l10n_ug/models/template_ug.py | 42 ++ 10 files changed, 922 insertions(+) create mode 100644 addons/l10n_ug/__init__.py create mode 100644 addons/l10n_ug/__manifest__.py create mode 100644 addons/l10n_ug/data/account_tax_report_data.xml create mode 100644 addons/l10n_ug/data/template/account.account-ug.csv create mode 100644 addons/l10n_ug/data/template/account.fiscal.position-ug.csv create mode 100644 addons/l10n_ug/data/template/account.tax-ug.csv create mode 100644 addons/l10n_ug/data/template/account.tax.group-ug.csv create mode 100644 addons/l10n_ug/demo/demo_company.xml create mode 100644 addons/l10n_ug/models/__init__.py create mode 100644 addons/l10n_ug/models/template_ug.py diff --git a/addons/l10n_ug/__init__.py b/addons/l10n_ug/__init__.py new file mode 100644 index 00000000000..cde864bae21 --- /dev/null +++ b/addons/l10n_ug/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/addons/l10n_ug/__manifest__.py b/addons/l10n_ug/__manifest__.py new file mode 100644 index 00000000000..62dcdac79c8 --- /dev/null +++ b/addons/l10n_ug/__manifest__.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- + +{ + "name": "Uganda - Accounting", + "countries": ["ug"], + "version": "1.0.0", + "category": "Accounting/Localizations/Account Charts", + "license": "LGPL-3", + "description": """ +This is the basic Ugandian localisation necessary to run Odoo in UG: +================================================================================ + - Chart of accounts + - Taxes + - Fiscal positions + - Default settings + - Tax report + """, + "depends": [ + "account", + ], + "data": [ + "data/account_tax_report_data.xml", + ], + "demo": [ + "demo/demo_company.xml", + ] +} diff --git a/addons/l10n_ug/data/account_tax_report_data.xml b/addons/l10n_ug/data/account_tax_report_data.xml new file mode 100644 index 00000000000..05aee0c796b --- /dev/null +++ b/addons/l10n_ug/data/account_tax_report_data.xml @@ -0,0 +1,590 @@ + + + + Sections C and D + + + country + + + Amounts + base + + + VAT Charged + tax + + + + + Section C - Sales (Goods and Services) + 0 + + + 1. Zero Rated Sales Local + UG_TAX_C1 + + + base + tax_tags + C1_base + + + + + 2. Zero Rated Sales Export + UG_TAX_C2 + + + base + tax_tags + C2_base + + + + + 3. Exempt Local Sales + UG_TAX_C3 + + + base + tax_tags + C3_base + + + + + 4. Standard Rated Sales Charged + UG_TAX_C4 + + + base + tax_tags + C4_base + + + tax + tax_tags + C4_tax + + + + + 5. Standard Rated Sales Deemed + UG_TAX_C5 + + + base + tax_tags + C5_base + + + tax + tax_tags + C5_tax + + + + + 6. Capital goods sold (Business Assets) Charged + UG_TAX_C6 + + + base + tax_tags + C6_base + + + tax + tax_tags + C6_tax + + + + + 7. Capital goods sold (Business Assets) Deemed + UG_TAX_C7 + + + base + tax_tags + C7_base + + + tax + tax_tags + C7_tax + + + + + 8. Total Output tax + UG_TAX_C8 + + + tax + aggregation + UG_TAX_C4.tax + UG_TAX_C6.tax + + + + + 9. Adjustments to Output tax + + + i. Imported Services + UG_TAX_C9_i + + + base + tax_tags + C9_i_base + + + tax + tax_tags + C9_i_tax + + + + + ii. VAT deferred at Importation + UG_TAX_C9_ii + + + base + tax_tags + C9_ii_base + + + tax + tax_tags + C9_ii_tax + + + + + iii. Tax Charge due to bad debts recovered + UG_TAX_C9_iii + + + tax + external + most_recent + editable;rounding=2 + + + + + iv. Tax Charge due to change of Accounting method + UG_TAX_C9_iv + + + tax + external + most_recent + editable;rounding=2 + + + + + v. Tax Charge due to end of year apportionment of input tax + UG_TAX_C9_v + + + tax + external + most_recent + editable;rounding=2 + + + + + + + 10. Total Tax Charged for the Period + UG_TAX_C10 + + + tax + aggregation + UG_TAX_C8.tax + UG_TAX_C9_i.tax + UG_TAX_C9_ii.tax + UG_TAX_C9_iii.tax + UG_TAX_C9_iv.tax + UG_TAX_C9_v.tax + + + + + + + + Section D - Purchases (Goods and Services) + 0 + + + 11. Zero Rated Purchases Local + UG_TAX_D11 + + + base + tax_tags + D11_base + + + + + 12. Zero Rated Purchases Export + UG_TAX_D12 + + + base + tax_tags + D12_base + + + + + 13. Standard Rated Purchases Local VAT Incurred + UG_TAX_D13 + + + base + tax_tags + D13_base + + + tax + tax_tags + D13_tax + + + + + 14. Standard Rated Purchases Local VAT Deemed + UG_TAX_D14 + + + base + tax_tags + D14_base + + + tax + tax_tags + D14_tax + + + + + 15. Standard Rated Imports (Goods) VAT Incurred + UG_TAX_D15 + + + base + tax_tags + D15_base + + + tax + tax_tags + D15_tax + + + + + 16. Standard Rated Imports (Goods) VAT Deferred + UG_TAX_D16 + + + base + tax_tags + D16_base + + + tax + tax_tags + D16_tax + + + + + 17. Administrative Expenses VAT Incurred + UG_TAX_D17 + + + base + tax_tags + D17_base + + + tax + tax_tags + D17_tax + + + + + 18. Capital goods bought (Business Assets) VAT Incurred + UG_TAX_D18 + + + base + tax_tags + D18_base + + + tax + tax_tags + D18_tax + + + + + 19. Capital goods bought (Business Assets) VAT Deemed + UG_TAX_D19 + + + base + tax_tags + D19_base + + + tax + tax_tags + D19_tax + + + + + 20. Total Input tax + UG_TAX_D20 + + + tax + aggregation + UG_TAX_D13.tax + UG_TAX_D15.tax + UG_TAX_D17.tax + UG_TAX_D18.tax + + + + + 21. Adjustment of input tax + + + i. Imported Services + UG_TAX_D21_i + + + base + tax_tags + D21_i_base + + + tax + tax_tags + D21_i_tax + + + + + ii. Deferred VAT discharged (permitted by Commissioner General) + UG_TAX_D21_ii + + + base + external + most_recent + editable;rounding=2 + + + tax + aggregation + UG_TAX_D21_ii.base * 0.18 + + + + + iii. Tax Claim due to bad debts written off + UG_TAX_D21_iii + + + tax + external + most_recent + editable;rounding=2 + + + + + iv. Tax Credit due to change of Accounting method + UG_TAX_D21_iv + + + tax + external + most_recent + editable;rounding=2 + + + + + + + 22. Total Input Tax for the Period + UG_TAX_D22 + + + tax + aggregation + UG_TAX_D20.tax + UG_TAX_D21_i.tax - UG_TAX_D21_ii.tax + UG_TAX_D21_iii.tax + UG_TAX_D21_iv.tax + + + + + + + + + + Section F + + + country + + + Input tax disallowed + disallowed + + + Input tax credit Allowed + allowed + + + + + Section F - Calculation Input tax Credit Allowed + 0 + + + Use Standard Alternative Method of Apportionment (Default is Normal method)? + UG_TAX_FM + + + allowed + external + most_recent + editable + boolean + + + + + 29. Input tax directly attributable to Taxable Sales + UG_TAX_F29 + + + allowed + external + most_recent + editable;rounding=2 + + + + + 30. Input tax directly attributable to Exempt Sales (Disallowed) and non-creditable input tax + UG_TAX_F30 + + + disallowed + external + most_recent + editable;rounding=2 + + + + + 31.Input tax apportioned to Taxable Sales using selected formula + UG_TAX_F31 + + + allowed + aggregation + + (1 - UG_TAX_FM.allowed) * UG_TAX_F31.hidden_computation_of_F31_using_normal_formula + + UG_TAX_FM.allowed * UG_TAX_F31.hidden_computation_of_F31_using_sam_formula + + + + hidden_computation_of_F31_using_normal_formula + aggregation + + (UG_TAX_D20.tax - UG_TAX_F30.disallowed) + * (UG_TAX_C1.base + UG_TAX_C2.base + UG_TAX_C4.base + UG_TAX_C5.base + UG_TAX_C6.base + UG_TAX_C7.base) + / (UG_TAX_C1.base + UG_TAX_C2.base + UG_TAX_C3.base + UG_TAX_C4.base + UG_TAX_C5.base + UG_TAX_C6.base + UG_TAX_C7.base) + + cross_report + + + hidden_computation_of_F31_using_sam_formula + aggregation + + (UG_TAX_D20.tax - UG_TAX_F29.allowed - UG_TAX_F30.disallowed) + * (UG_TAX_C1.base + UG_TAX_C2.base + UG_TAX_C4.base + UG_TAX_C5.base + UG_TAX_C6.base + UG_TAX_C7.base) + / (UG_TAX_C1.base + UG_TAX_C2.base + UG_TAX_C3.base + UG_TAX_C4.base + UG_TAX_C5.base + UG_TAX_C6.base + UG_TAX_C7.base) + + cross_report + + + + + 32. Input tax credit for the period + UG_TAX_F32 + + + allowed + aggregation + UG_TAX_F29.allowed + UG_TAX_F31.allowed + + + + + 33. Adjustments to Input tax credit + UG_TAX_F33 + + + a. Adjustments to Input tax credit + UG_TAX_F33_a + + + allowed + external + most_recent + editable;rounding=2 + + + + + + + Total Input tax credit Allowed for the period + + + allowed + aggregation + UG_TAX_F32.allowed + UG_TAX_F33_a.allowed + UG_TAX_D21_i.tax + UG_TAX_D21_iii.tax + UG_TAX_D21_iv.tax + cross_report + + + + + + + + + + Tax Report + + + + country + + + + diff --git a/addons/l10n_ug/data/template/account.account-ug.csv b/addons/l10n_ug/data/template/account.account-ug.csv new file mode 100644 index 00000000000..3862bda0af2 --- /dev/null +++ b/addons/l10n_ug/data/template/account.account-ug.csv @@ -0,0 +1,125 @@ +id,name,code,account_type,tag_ids,reconcile +1410,Property Income,1410,income_other,,False +1420,Sale of goods and services,1420,income,,False +14211,Rent & rates - produced assets,14211,income,,False +14212,Sale of produced assets,14212,income,,False +1440,Transfers,1440,income_other,,False +14511,Premiums receivable,14511,income_other,,False +14513,Current claims receivable,14513,income_other,,False +1452,Capital Claims receivable,1452,income_other,,False +191001,Clearing Account - Discount Taken,191001,income,,False +191002,Clearing Account - Unallocated Revenue,191002,income,,False +191003,Clearing Account - Income Offset Account,191003,income,,False +2111,Wages and Salaries - Cash,2111,expense,,False +2112,Wages and salaries - in kind,2112,expense,,False +2121,Employers' Social Contributions-Actual,2121,expense,,False +2122,Employer's Social Contributions-Imputed,2122,expense,,False +2210,General use of goods and services,2210,expense,,False +221018,Exchange losses/gains,221018,expense,,False +221019,Discounts Allowed,221019,expense,,False +2220,Communications,2220,expense,,False +2230,Utility and Property Expenses,2230,expense,,False +2240,Supplies and Services,2240,expense,,False +2251,Consultancy Services- Recurrent,2251,expense,,False +2252,Consultancy Services- Capital,2252,expense,,False +2260,Insurances and Licenses,2260,expense,,False +2270,Travel and Transport,2270,expense,,False +2280,Maintenance,2280,expense,,False +2291,Net change in inventories,2291,expense,,False +2292,Sale of goods purchased for resale,2292,expense,,False +2311,Depreciation of buildings and structures,2311,expense_depreciation,,False +2312,Depreciation of machinery and equipments,2312,expense_depreciation,,False +2314,Depreciation of other assets,2314,expense_depreciation,,False +2634,Other Transfers,2634,expense,,False +2711,Social security benefits in cash,2711,expense,,False +2712,Social security benefits in kind,2712,expense,,False +2721,Social assistance benefits in cash,2721,expense,,False +2722,Social assistance benefits in kind,2722,expense,,False +2731,Employment-related social benefits in cash,2731,expense,,False +2732,Employment-related social benefits in in kind,2732,expense,,False +2811,Dividends,2811,expense,,False +2812,Withdrawals from income of quasi - corporations,2812,expense,,False +2813,Property expense for investment income disbursements,2813,expense,,False +2814,Rent,2814,expense,,False +2815,Reinvested earnings on foreign direct investment,2815,expense,,False +2821,Current transfers not elsewhere classified,2821,expense,,False +2822,Capital transfers not elsewhere classified,2822,expense,,False +2823,Tax expenditures,2823,expense,,False +2831,"Premiums, fees and current claims payable",2831,expense,,False +2832,Capital claims payable,2832,expense,,False +291001,Clearing Account - Bank Charges,291001,expense,,False +291002,Clearing Account - Exchange Losses/Gains,291002,expense,,False +291003,Clearing Account - Discounts Allowed,291003,expense,,False +291004,Clearing Account - Purchase Price Variance,291004,expense,,False +291005,Clearing Account - Bank Errors,291005,expense,,False +291006,Clearing Account - Cost of Goods Sold,291006,expense,,False +310111,Residential Buildings,310111,asset_fixed,,False +310119,Other Dwellings,310119,asset_fixed,,False +310121,Non-Residential Buildings,310121,asset_fixed,,False +310129,Other Buildings other than dwellings,310129,asset_fixed,,False +31013,Structures,31013,asset_fixed,,False +31014,Land Improvements,31014,asset_fixed,,False +31021,Transport equipment,31021,asset_fixed,,False +31022,ICT equipment,31022,asset_fixed,,False +31023,Machinery and other equipment,31023,asset_fixed,,False +31031,Classified assets,31031,asset_fixed,,False +31041,Biological assets,31041,asset_fixed,,False +31042,Intellectual property product,31042,asset_fixed,,False +31043,Intellectual property rights,31043,asset_fixed,,False +31044,Marketing assets,31044,asset_fixed,,False +320111,Inventory for materials and supplies,320111,asset_prepayments,,False +320112,Inventory for work in progress,320112,asset_prepayments,,False +320113,Inventory for finished goods,320113,asset_prepayments,,False +320114,Inventory for goods for resale,320114,asset_prepayments,,False +320115,Military Inventories,320115,asset_prepayments,,False +320119,Other Inventories,320119,asset_prepayments,,False +340111,Land,340111,asset_fixed,,False +340211,Minerals,340211,asset_fixed,,False +340212,Oil & Natural Gas,340212,asset_fixed,,False +340213,Energy resources,340213,asset_fixed,,False +340219,Other Mineral and Energy Resources,340219,asset_fixed,,False +34031,Non-Cultivated Biological resources,34031,asset_fixed,,False +34032,Water resources,34032,asset_fixed,,False +34033,Airspace resources,34033,asset_fixed,,False +34034,Non-Cultivated Non Biological,34034,asset_fixed,,False +340401,"Marketable operating leases - Contracts, leases and Permits",340401,asset_non_current,,False +340402,"Permits to use natural resources - Contracts, leases and Permits",340402,asset_non_current,,False +340403,"Permits to undertake specific activities - Contracts, leases and Permits",340403,asset_non_current,,False +3510,Monetary Gold and SDRs,3510,asset_current,,False +3522,Debt Securities,3522,asset_current,,False +3523,Loans,3523,asset_current,,False +352401,Shares in public corporations,352401,asset_non_current,,False +352402,Shares in private entities,352402,asset_non_current,,False +352501,Petroleum Revenue Investment Reserve,352501,asset_non_current,,False +352599,Other Investment Fund Shares or Units,352599,asset_non_current,,False +352701,Forwards,352701,asset_prepayments,,False +352702,Futures,352702,asset_prepayments,,False +352703,Options,352703,asset_prepayments,,False +352704,Swaps,352704,asset_prepayments,,False +3528,Account Receivable,3528,asset_receivable,,True +352802,Staff Advances,352802,asset_receivable,,True +352804,Taxes Receivable,352804,asset_receivable,,True +352805,Revenue receivable,352805,asset_receivable,,True +352806,Trade debtors,352806,asset_receivable,,True +352807,Sundry Debtors,352807,asset_receivable,,True +352808,Pre-payments,352808,asset_receivable,,True +352809,Deferred Expenses,352809,asset_receivable,,True +3529,Taxes owed to state,3529,asset_current,,False +4111,Currency Deposits,4111,liability_payable,,True +4112,Dept Security,411201,liability_current,,False +4113,Loans,4113,liability_current,,False +4115,Investment Fund Shares or Units,4115,liability_non_current,,False +4117,Accounts Payable,4117,liability_payable,,True +411721,Trade creditors,411721,liability_payable,,True +411722,Taxes payable,411722,liability_payable,,True +411723,Taxes due to state,411723,liability_current,,False +411724,Deposits received,411724,liability_payable,,True +411725,Advances from Other Government Units,411725,liability_payable,,True +411726,Deferred Income,411726,liability_payable,,True +411798,Other Payables,411798,liability_payable,,True +4131,Provisions,4131,liability_non_current,,False +511001,Revenue Reserves,511001,equity_unaffected,,False +512001,Fixed Assets Reserves,512001,equity,,False +512201,Inventory Reserves,512201,equity,,False +512301,Financial Assets Reserves,512301,equity,,False +513001,Accumulated Fund,513001,equity,,False diff --git a/addons/l10n_ug/data/template/account.fiscal.position-ug.csv b/addons/l10n_ug/data/template/account.fiscal.position-ug.csv new file mode 100644 index 00000000000..121c76b224e --- /dev/null +++ b/addons/l10n_ug/data/template/account.fiscal.position-ug.csv @@ -0,0 +1,14 @@ +"id","sequence","name","auto_apply","country_id","tax_ids/tax_src_id","tax_ids/tax_dest_id" +"fiscal_position_template_national","1","National","1","base.ug","","" +"fiscal_position_template_non_ugandian","2","International","1","","sale_zero_rated","sale_export_0" +"","","","","","sale_exempt","sale_export_0" +"","","","","","sale_vat_18","sale_export_0" +"","","","","","sale_deemed_vat_18","sale_export_0" +"","","","","","sale_capital_goods_18","sale_export_0" +"","","","","","sale_deemed_capital_goods_18","sale_export_0" +"","","","","","purchase_zero_rated","purchase_import_vat_18" +"","","","","","purchase_vat_18","purchase_import_vat_18" +"","","","","","purchase_deemed_vat_18","purchase_import_vat_18" +"","","","","","purchase_capital_goods_18","purchase_import_vat_18" +"","","","","","purchase_deemed_capital_goods_18","purchase_import_vat_18" +"","","","","","purchase_admin_exp_18","purchase_import_vat_18" diff --git a/addons/l10n_ug/data/template/account.tax-ug.csv b/addons/l10n_ug/data/template/account.tax-ug.csv new file mode 100644 index 00000000000..e240ef97b8f --- /dev/null +++ b/addons/l10n_ug/data/template/account.tax-ug.csv @@ -0,0 +1,81 @@ +"id","name","description","amount","type_tax_use",tax_scope,"tax_group_id","repartition_line_ids/document_type","repartition_line_ids/factor_percent","repartition_line_ids/repartition_type","repartition_line_ids/account_id","repartition_line_ids/tag_ids","active" +"sale_zero_rated","0%","Zero-rated supplies.","0","sale",,"consumption_taxes","invoice","","base",,"+C1_base","True" +,,,,,,,"invoice","","tax",,, +,,,,,,,"refund","","base",,"-C1_base", +,,,,,,,"refund","","tax",,, +"purchase_zero_rated","0%","Zero-rated supplies.","0","purchase",,"consumption_taxes","invoice","","base",,"+D11_base","True" +,,,,,,,"invoice","","tax",,, +,,,,,,,"refund","","base",,"-D11_base", +,,,,,,,"refund","","tax",,, +"sale_export_0","0% EX","Exported supplies attract a zero rate of tax.","0","sale",,"consumption_taxes","invoice","","base",,"+C2_base","True" +,,,,,,,"invoice","","tax",,, +,,,,,,,"refund","","base",,"-C2_base", +,,,,,,,"refund","","tax",,, +"sale_exempt","Tax Exempt","Supplies exempts of tax.","0","sale",,"consumption_taxes","invoice","","base",,"+C3_base","True" +,,,,,,,"invoice","","tax",,, +,,,,,,,"refund","","base",,"-C3_base", +,,,,,,,"refund","","tax",,, +"sale_vat_18","18%","VAT on all supplies made by taxable persons.","18","sale",,"consumption_taxes","invoice","","base",,"+C4_base","True" +,,,,,,,"invoice","","tax","411722","+C4_tax", +,,,,,,,"refund","","base",,"-C4_base", +,,,,,,,"refund","","tax","411722","-C4_tax", +"purchase_vat_18","18%","VAT on all supplies made by taxable persons.","18","purchase",,"consumption_taxes","invoice","","base",,"+D13_base","True" +,,,,,,,"invoice","","tax","352804","+D13_tax", +,,,,,,,"refund","","base",,"-D13_base", +,,,,,,,"refund","","tax","352804","-D13_tax", +"sale_deemed_vat_18","18% Deemed","Deemed VAT on all supplies made by taxable persons.","18","sale",,"consumption_taxes","invoice","","base",,"+C5_base","False" +,,,,,,,"invoice","","tax","411722","+C5_tax", +,,,,,,,"invoice","-100","tax","411722",, +,,,,,,,"refund","","base",,"-C5_base", +,,,,,,,"refund","","tax","411722","-C5_tax", +,,,,,,,"refund","-100","tax","411722",, +"purchase_deemed_vat_18","18% Deemed","Deemed VAT on all supplies made by taxable persons.","18","purchase",,"consumption_taxes","invoice","","base",,"+D14_base","False" +,,,,,,,"invoice","","tax","352804","+D14_tax", +,,,,,,,"invoice","-100","tax","352804",, +,,,,,,,"refund","","base",,"-D14_base", +,,,,,,,"refund","","tax","352804","-D14_tax", +,,,,,,,"refund","-100","tax","352804",, +"sale_capital_goods_18","18% CG","Tax on all capital goods (business assets) sold.","18","sale",consu,"consumption_taxes","invoice","","base",,"+C6_base","True" +,,,,,,,"invoice","","tax","411722","+C6_tax", +,,,,,,,"refund","","base",,"-C6_base", +,,,,,,,"refund","","tax","411722","-C6_tax", +"purchase_capital_goods_18","18% CG","Tax on all capital goods (business assets) purchased.","18","purchase",consu,"consumption_taxes","invoice","","base",,"+D18_base","True" +,,,,,,,"invoice","","tax","352804","+D18_tax", +,,,,,,,"refund","","base",,"-D18_base", +,,,,,,,"refund","","tax","352804","-D18_tax", +"sale_deemed_capital_goods_18","18% CG Deemed","Deemed tax on all capital goods (business assets) sold.","18","sale",consu,"consumption_taxes","invoice","","base",,"+C7_base","False" +,,,,,,,"invoice","","tax","411722","+C7_tax", +,,,,,,,"invoice","-100","tax","411722",, +,,,,,,,"refund","","base",,"-C7_base", +,,,,,,,"refund","","tax","411722","-C7_tax", +,,,,,,,"refund","-100","tax","411722",, +"purchase_deemed_capital_goods_18","18% CG Deemed","Deemed tax on all capital goods (business assets) purchased.","18","purchase",consu,"consumption_taxes","invoice","","base",,"+D19_base","False" +,,,,,,,"invoice","","tax","352804","+D19_tax", +,,,,,,,"invoice","-100","tax","352804",, +,,,,,,,"refund","","base",,"-D19_base", +,,,,,,,"refund","","tax","352804","-D19_tax", +,,,,,,,"refund","-100","tax","352804",, +"sale_import_services_18","18% IS","Tax on imported services sold.","18","sale",service,"consumption_taxes","invoice","","base",,"+C9_i_base","True" +,,,,,,,"invoice","","tax","411722","+C9_i_tax", +,,,,,,,"refund","","base",,"-C9_i_base", +,,,,,,,"refund","","tax","411722","-C9_i_tax", +"purchase_import_services_18","18% IS","Tax on imported services sold.","18","purchase",service,"consumption_taxes","invoice","","base",,"+D21_i_base","True" +,,,,,,,"invoice","","tax","352804","+D21_i_tax", +,,,,,,,"refund","","base",,"-D21_i_base", +,,,,,,,"refund","","tax","352804","-D21_i_tax", +"sale_import_deferred_vat_18","18% Import Deferred","VAT deferred at importation","18","sale",,"consumption_taxes","invoice","","base",,"+C9_ii_base","False" +,,,,,,,"invoice","","tax","411722","+C9_ii_tax", +,,,,,,,"refund","","base",,"-C9_ii_base", +,,,,,,,"refund","","tax","411722","-C9_ii_tax", +"purchase_import_deferred_vat_18","18% Import Deferred","VAT deferred on imported goods.","18","purchase",consu,"consumption_taxes","invoice","","base",,"+D16_base","False" +,,,,,,,"invoice","","tax","352804","+D16_tax", +,,,,,,,"refund","","base",,"-D16_base", +,,,,,,,"refund","","tax","352804","-D16_tax", +"purchase_import_vat_18","18% Import","Tax on imported goods.","18","purchase",consu,"consumption_taxes","invoice","","base",,"+D15_base","True" +,,,,,,,"invoice","","tax","352804","+D15_tax", +,,,,,,,"refund","","base",,"-D15_base", +,,,,,,,"refund","","tax","352804","-D15_tax", +"purchase_admin_exp_18","18% AE","Administrative Expenses.","18","purchase",,"consumption_taxes","invoice","","base",,"+D17_base","True" +,,,,,,,"invoice","","tax","352804","+D17_tax", +,,,,,,,"refund","","base",,"-D17_base", +,,,,,,,"refund","","tax","352804","-D17_tax", diff --git a/addons/l10n_ug/data/template/account.tax.group-ug.csv b/addons/l10n_ug/data/template/account.tax.group-ug.csv new file mode 100644 index 00000000000..59f19a05e41 --- /dev/null +++ b/addons/l10n_ug/data/template/account.tax.group-ug.csv @@ -0,0 +1,2 @@ +id,name,country_id,tax_payable_account_id,tax_receivable_account_id +consumption_taxes,Consumption Taxes,base.ug,"411723","3529" diff --git a/addons/l10n_ug/demo/demo_company.xml b/addons/l10n_ug/demo/demo_company.xml new file mode 100644 index 00000000000..6e358f913bc --- /dev/null +++ b/addons/l10n_ug/demo/demo_company.xml @@ -0,0 +1,35 @@ + + + + UG Company + 1234567890 + Mutesa 1 Road + Kampala + + + 10101 + +256 77 403614 + info@company.ugexample.com + www.ugexample.com + + + + UG Company + + + + + + + + + + + + + + + ug + + + diff --git a/addons/l10n_ug/models/__init__.py b/addons/l10n_ug/models/__init__.py new file mode 100644 index 00000000000..f21ba128c9c --- /dev/null +++ b/addons/l10n_ug/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import template_ug diff --git a/addons/l10n_ug/models/template_ug.py b/addons/l10n_ug/models/template_ug.py new file mode 100644 index 00000000000..dcc90db905f --- /dev/null +++ b/addons/l10n_ug/models/template_ug.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- + +from odoo import models +from odoo.addons.account.models.chart_template import template + + +class AccountChartTemplate(models.AbstractModel): + _inherit = "account.chart.template" + + @template('ug') + def _get_ug_template_data(self): + return { + 'name': "Uganda Generic Chart of Accounts", + 'code_digits': 6, + 'property_account_receivable_id': '3528', + 'property_account_payable_id': '4117', + 'property_account_expense_categ_id': '2240', + 'property_account_income_categ_id': '1420', + } + + @template('ug', 'res.company') + def _get_ug_res_company(self): + return { + self.env.company.id: { + 'anglo_saxon_accounting': True, + 'account_fiscal_country_id': 'base.ug', + 'bank_account_code_prefix': '3528', + 'cash_account_code_prefix': '3528', + 'transfer_account_code_prefix': '3528', + 'account_default_pos_receivable_account_id': '3528', + 'income_currency_exchange_account_id': '221018', + 'expense_currency_exchange_account_id': '221018', + 'account_journal_early_pay_discount_loss_account_id': '221019', + 'account_journal_early_pay_discount_gain_account_id': '191001', + 'account_sale_tax_id': 'sale_vat_18', + 'account_purchase_tax_id': 'purchase_vat_18', + 'fiscalyear_last_day': '30', + 'fiscalyear_last_month': '6', + 'deferred_expense_account_id': '352809', + 'deferred_revenue_account_id': '411726', + } + }