From 429b001cd4078e6c1aeff29d4f4b9411b6d6474c Mon Sep 17 00:00:00 2001 From: hapa-odoo Date: Wed, 4 Jan 2023 13:16:41 +0000 Subject: [PATCH] [ADD] l10n_in_tcs_tds: added a new module for Tax report TCS/TDS in India. In this commit, I have added a new module for TCS/TDS Tax Report in India. It will load TCS/TDS-related taxes for an Indian Company. Added a new character field PAN on the partner. Added post_init_hook to load these taxes in current company. closes odoo/odoo#109338 X-original-commit: 367c32684e572dbc9413dc4bc2ba30b14f730541 Signed-off-by: Quentin De Paoli Signed-off-by: Josse Colpaert --- .../data/account_tax_template_data.xml | 40 + addons/l10n_in_tcs_tds/__init__.py | 47 + addons/l10n_in_tcs_tds/__manifest__.py | 26 + .../data/account.account.template.csv | 3 + .../data/account_tax_group_data.xml | 15 + .../data/account_tax_report_tcs_data.xml | 173 ++ .../data/account_tax_report_tds_data.xml | 360 +++ .../data/account_tax_template_tcs_data.xml | 932 +++++++ .../data/account_tax_template_tds_data.xml | 2334 +++++++++++++++++ addons/l10n_in_tcs_tds/models/__init__.py | 4 + addons/l10n_in_tcs_tds/models/res_partner.py | 17 + .../views/res_partner_views.xml | 14 + 12 files changed, 3965 insertions(+) create mode 100644 addons/l10n_in_tcs_tds/__init__.py create mode 100644 addons/l10n_in_tcs_tds/__manifest__.py create mode 100644 addons/l10n_in_tcs_tds/data/account.account.template.csv create mode 100644 addons/l10n_in_tcs_tds/data/account_tax_group_data.xml create mode 100644 addons/l10n_in_tcs_tds/data/account_tax_report_tcs_data.xml create mode 100644 addons/l10n_in_tcs_tds/data/account_tax_report_tds_data.xml create mode 100644 addons/l10n_in_tcs_tds/data/account_tax_template_tcs_data.xml create mode 100644 addons/l10n_in_tcs_tds/data/account_tax_template_tds_data.xml create mode 100644 addons/l10n_in_tcs_tds/models/__init__.py create mode 100644 addons/l10n_in_tcs_tds/models/res_partner.py create mode 100644 addons/l10n_in_tcs_tds/views/res_partner_views.xml diff --git a/addons/l10n_in/data/account_tax_template_data.xml b/addons/l10n_in/data/account_tax_template_data.xml index 267e67588a7..02634209790 100644 --- a/addons/l10n_in/data/account_tax_template_data.xml +++ b/addons/l10n_in/data/account_tax_template_data.xml @@ -7,6 +7,8 @@ percent 5 + + fixed 1.591 + + IGST 1% IGST 1% sale + + percent 1 @@ -233,6 +239,8 @@ if tax > result:result=tax IGST 2% IGST 2% sale + + percent 2 @@ -264,6 +272,8 @@ if tax > result:result=tax IGST 28% IGST 28% sale + + percent 28 @@ -295,6 +305,8 @@ if tax > result:result=tax IGST 18% IGST 18% sale + + percent 18 @@ -326,6 +338,8 @@ if tax > result:result=tax IGST 12% IGST 12% sale + + percent 12 @@ -357,6 +371,8 @@ if tax > result:result=tax IGST 5% IGST 5% sale + + percent 5 @@ -390,6 +406,8 @@ if tax > result:result=tax none percent 0.5 + + none percent 0.5 + + none percent 1 + + none percent 1 + + none percent 14 + + none percent 14 + + none percent 9 + + none percent 9 + + none percent 6 + + none percent 6 + + none percent 2.5 + + none percent 2.5 + + + + + + TCS + + 100 + + + TDS + + 100 + + + diff --git a/addons/l10n_in_tcs_tds/data/account_tax_report_tcs_data.xml b/addons/l10n_in_tcs_tds/data/account_tax_report_tcs_data.xml new file mode 100644 index 00000000000..5b5bbd38928 --- /dev/null +++ b/addons/l10n_in_tcs_tds/data/account_tax_report_tcs_data.xml @@ -0,0 +1,173 @@ + + + + TCS Report + + + + country + + + Balance + balance + + + + + + Section 206C(1): Alcoholic Liquor for human consumption + + + + balance + tax_tags + 206C(1) Alcoholic Liquor + + + + + Section 206C(1): Tendu leaves + + + + balance + tax_tags + 206C(1) Tendu leaves + + + + + Section 206C(1): Timber obtained under a forest lease + + + + balance + tax_tags + 206C(1) Timber (forest lease) + + + + + Section 206C(1): Timber obtained by any mode other than under a forest lease + + + + balance + tax_tags + 206C(1) Timber (other than under a forest lease) + + + + + Section 206C(1): Any other forest produce not being timber or tendu leaves + + + + balance + tax_tags + 206C(1) other forest produce + + + + + Section 206C(1): Scrap + + + + balance + tax_tags + 206C(1) Scrap + + + + + Section 206C(1): Minrals, being coal or lignite or iron ore + + + + balance + tax_tags + 206C(1) Minrals + + + + + Section 206C(1C): Parking lot + + + + balance + tax_tags + 206C(1C) Parking lot + + + + + Section 206C(1C): Toll plaza + + + + balance + tax_tags + 206C(1C) Toll plaza + + + + + Section 206C(1C): Mining and quarrying + + + + balance + tax_tags + 206C(1C) Mining and quarrying + + + + + Section 206C(1F): Motor Vehicle + + + + balance + tax_tags + 206C(1F) + + + + + Section 206C(1G): Sum of money (above 7 lakhs) for remittance out of India + + + + balance + tax_tags + 206C(1G) remittance out of India + + + + + Section 206C(1G): Seller of an overseas tour program package + + + + balance + tax_tags + 206C(1G) overseas tour program + + + + + Section 206C(1H): Sale of Goods + + + + balance + tax_tags + 206C(1H) + + + + + + diff --git a/addons/l10n_in_tcs_tds/data/account_tax_report_tds_data.xml b/addons/l10n_in_tcs_tds/data/account_tax_report_tds_data.xml new file mode 100644 index 00000000000..f38aca80ad6 --- /dev/null +++ b/addons/l10n_in_tcs_tds/data/account_tax_report_tds_data.xml @@ -0,0 +1,360 @@ + + + + TDS Report + + + + country + + + Balance + balance + + + + + + Section 192: Payment of salary + + + + balance + tax_tags + 192 + + + + + Section 192A: Payment of accumulated balance of provident fund which is taxable in the hands of an employee + + + + balance + tax_tags + 192A + + + + + Section 193: Interest on securities + + + + balance + tax_tags + 193 + + + + + Section 194: Income by way of dividend + + + + balance + tax_tags + 194 + + + + + Section 194A: Income by way of interest other than "Interest on securities" + + + + balance + tax_tags + 194A + + + + + Section 194B: Income by way of winnings from lotteries, crossword puzzles, card games and other games of any sort + + + + balance + tax_tags + 194B + + + + + Section 194BB: Income by way of winnings from horse races + + + + balance + tax_tags + 194BB + + + + + Section 194C: Payment to contractor/sub-contractor + + + + balance + tax_tags + 194C + + + + + Section 194D: Insurance commission + + + + balance + tax_tags + 194D + + + + + Section 194DA: Payment in respect of life insurance policy + + + + balance + tax_tags + 194DA + + + + + Section 194E: Payment to non-resident sportsmen/sports association + + + + balance + tax_tags + 194E + + + + + Section 194EE: Payment in respect of deposit under National Savings scheme + + + + balance + tax_tags + 194EE + + + + + Section 194F: Payment on account of repurchase of unit by Mutual Fund or Unit Trust of India + + + + balance + tax_tags + 194F + + + + + Section 194G: Commission, etc., on sale of lottery tickets + + + + balance + tax_tags + 194G + + + + + Section 194H: Commission or brokerage + + + + balance + tax_tags + 194H + + + + + Section 194-I: Rent + + + + balance + tax_tags + 194I + + + + + Section 194-IA: Payment on transfer of certain immovable property other than agricultural land + + + + balance + tax_tags + 194IA + + + + + Section 194-IB: Payment of rent by individual or HUF not liable to tax audit + + + + balance + tax_tags + 194IB + + + + + Section 194-IC: Payment of monetary consideration under Joint Development Agreements + + + + balance + tax_tags + 194IC + + + + + Section 194J: Fees for professional or technical services + + + + balance + tax_tags + 194J + + + + + Section 194K: Income in respect of units payable to resident person + + + + balance + tax_tags + 194K + + + + + Section 194LA: Payment of compensation on acquisition of certain immovable property + + + + balance + tax_tags + 194LA + + + + + Section 194LBA(1): Business trust shall deduct tax while distributing, any interest received or receivable by it from a SPV or any income received from renting or leasing or letting out any real estate asset owned directly by it, to its unit holders. + + + + balance + tax_tags + 194LBA(1) + + + + + Section 194LB: Payment of interest on infrastructure debt fund + + + + balance + tax_tags + 194LB + + + + + Section 194LBB: Investment fund paying an income to a unit holder [other than income which is exempt under Section 10(23FBB)] + + + + balance + tax_tags + 194LBB + + + + + Section 194LBC: Income in respect of investment made in a securitisation trust (specified in Explanation of section115TCA) + + + + balance + tax_tags + 194LBC + + + + + Section 194M: Payment of commission (not being insurance commission), brokerage, contractual fee, professional fee to a resident person by an Individual or a HUF who are not liable to deduct TDS under section 194C, 194H, or 194J. + + + + balance + tax_tags + 194M + + + + + Section 194N: Cash withdrawal during the previous year from one or more account maintained by a person with a banking company, co-operative society engaged in business of banking or a post office + + + + balance + tax_tags + 194N + + + + + Section 194-O: Payment or credit of amount by the e-commerce operator to e-commerce participant + + + + balance + tax_tags + 194O + + + + + Section 194Q: Purchase of goods + + + + balance + tax_tags + 194Q + + + + + Section 195: Payment of any other sum to a Non -resident + + + + balance + tax_tags + 195 + + + + + + diff --git a/addons/l10n_in_tcs_tds/data/account_tax_template_tcs_data.xml b/addons/l10n_in_tcs_tds/data/account_tax_template_tcs_data.xml new file mode 100644 index 00000000000..5f80d9e91d2 --- /dev/null +++ b/addons/l10n_in_tcs_tds/data/account_tax_template_tcs_data.xml @@ -0,0 +1,932 @@ + + + + TCS @1% u/s 206C(1): Alcoholic Liquor for human consumption + + TCS @1% u/s 206C(1): Alcoholic Liquor for human consumption + + sale + percent + 1 + consu + + + + + + + + TCS @5% u/s 206C(1): Alcoholic Liquor for human consumption + + TCS @5% u/s 206C(1): Alcoholic Liquor for human consumption + + sale + percent + 5 + consu + + + + + + + + TCS @5% u/s 206C(1): Tendu leaves + TCS @5% u/s 206C(1): Tendu leaves + sale + percent + 5 + consu + + + + + + + + TCS @2.5% u/s 206C(1): Timber obtained under a forest lease + TCS @2.5% u/s 206C(1): Timber obtained under a forest lease + sale + percent + 2.5 + consu + + + + + + + + TCS @5% u/s 206C(1): Timber obtained under a forest lease + TCS @5% u/s 206C(1): Timber obtained under a forest lease + sale + percent + 5 + consu + + + + + + + + TCS @2.5% u/s 206C(1): Timber obtained by any mode other than under a forest lease + TCS @2.5% u/s 206C(1): Timber obtained by any mode other than under a forest lease + sale + percent + 2.5 + consu + + + + + + + + TCS @5% u/s 206C(1): Timber obtained by any mode other than under a forest lease + TCS @5% u/s 206C(1): Timber obtained by any mode other than under a forest lease + sale + percent + 5 + consu + + + + + + + + TCS @2.5% u/s 206C(1): Any other forest produce not being timber or tendu leaves + TCS @2.5% u/s 206C(1): Any other forest produce not being timber or tendu leaves + sale + percent + 2.5 + consu + + + + + + + + TCS @5% u/s 206C(1): Any other forest produce not being timber or tendu leaves + TCS @5% u/s 206C(1): Any other forest produce not being timber or tendu leaves + sale + percent + 5 + consu + + + + + + + + TCS @1% u/s 206C(1): Scrap + TCS @1% u/s 206C(1): Scrap + sale + percent + 1 + consu + + + + + + + + TCS @5% u/s 206C(1): Scrap + TCS @5% u/s 206C(1): Scrap + sale + percent + 5 + consu + + + + + + + + TCS @1% u/s 206C(1): Minrals, being coal or lignite or iron ore + TCS @1% u/s 206C(1): Minrals, being coal or lignite or iron ore + sale + percent + 1 + consu + + + + + + + + TCS @5% u/s 206C(1): Minrals, being coal or lignite or iron ore + TCS @5% u/s 206C(1): Minrals, being coal or lignite or iron ore + sale + percent + 5 + consu + + + + + + + + TCS @2% u/s 206C(1C): Parking lot + TCS @2% u/s 206C(1C): Parking lot + sale + percent + 2 + consu + + + + + + + + TCS @5% u/s 206C(1C): Parking lot + TCS @5% u/s 206C(1C): Parking lot + sale + percent + 5 + consu + + + + + + + + TCS @2% u/s 206C(1C): Toll plaza + TCS @2% u/s 206C(1C): Toll plaza + sale + percent + 2 + consu + + + + + + + + TCS @5% u/s 206C(1C): Toll plaza + TCS @5% u/s 206C(1C): Toll plaza + sale + percent + 5 + consu + + + + + + + + TCS @2% u/s 206C(1C): Mining and quarrying + TCS @2% u/s 206C(1C): Mining and quarrying + sale + percent + 2 + consu + + + + + + + + TCS @5% u/s 206C(1C): Mining and quarrying + TCS @5% u/s 206C(1C): Mining and quarrying + sale + percent + 5 + consu + + + + + + + + TCS @1% u/s 206C(1F): Motor Vehicle + TCS @1% u/s 206C(1F): Motor Vehicle + sale + percent + 1 + consu + + + + + + + + TCS @5% u/s 206C(1F): Motor Vehicle + TCS @5% u/s 206C(1F): Motor Vehicle + sale + percent + 5 + consu + + + + + + + + TCS @5% u/s 206C(1G): Sum of money (above 7 lakhs) for remittance out of India + TCS @5% u/s 206C(1G): Sum of money (above 7 lakhs) for remittance out of India + sale + percent + 5 + consu + + + + + + + + TCS @5% u/s 206C(1G): Seller of an overseas tour program package + TCS @5% u/s 206C(1G): Seller of an overseas tour program package + sale + percent + 5 + consu + + + + + + + + TCS @0.1% u/s 206C(1H): Sale of Goods + TCS @0.1% u/s 206C(1H): Sale of Goods + sale + percent + 0.1 + consu + + + + + + + + TCS @1% u/s 206C(1H): Sale of Goods + TCS @1% u/s 206C(1H): Sale of Goods + sale + percent + 1 + consu + + + + + + + diff --git a/addons/l10n_in_tcs_tds/data/account_tax_template_tds_data.xml b/addons/l10n_in_tcs_tds/data/account_tax_template_tds_data.xml new file mode 100644 index 00000000000..1c15f453b71 --- /dev/null +++ b/addons/l10n_in_tcs_tds/data/account_tax_template_tds_data.xml @@ -0,0 +1,2334 @@ + + + + TDS @10% u/s 192A + TDS @10% u/s 192A + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 192A + TDS @20% u/s 192A + purchase + service + percent + -20 + + + + + + + + TDS @10% u/s 193 + TDS @10% u/s 193 + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 193 + TDS @20% u/s 193 + purchase + service + percent + -20 + + + + + + + + TDS @10% u/s 194 + TDS @10% u/s 194 + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 194 + TDS @20% u/s 194 + purchase + service + percent + -20 + + + + + + + + TDS @10% u/s 194A + TDS @10% u/s 194A + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 194A + TDS @20% u/s 194A + purchase + service + percent + -20 + + + + + + + + TDS @30% u/s 194B + TDS @30% u/s 194B + purchase + service + percent + -30 + + + + + + + + TDS @30% u/s 194BB + TDS @30% u/s 194BB + purchase + service + percent + -30 + + + + + + + + TDS @1% u/s 194C + TDS @1% u/s 194C + purchase + service + percent + -1 + + + + + + + + TDS @2% u/s 194C + TDS @2% u/s 194C + purchase + service + percent + -2 + + + + + + + + TDS @20% u/s 194C + TDS @20% u/s 194C + purchase + service + percent + -20 + + + + + + + + TDS @5% u/s 194D + TDS @5% u/s 194D + purchase + service + percent + -5 + + + + + + + + TDS @10% u/s 194D + TDS @10% u/s 194D + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 194D + TDS @20% u/s 194D + purchase + service + percent + -20 + + + + + + + + TDS @5% u/s 194DA + TDS @5% u/s 194DA + purchase + service + percent + -5 + + + + + + + + TDS @20% u/s 194DA + TDS @20% u/s 194DA + purchase + service + percent + -20 + + + + + + + + TDS @20% u/s 194E + TDS @20% u/s 194E + purchase + service + percent + -20 + + + + + + + + TDS @10% u/s 194EE + TDS @10% u/s 194EE + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 194EE + TDS @20% u/s 194EE + purchase + service + percent + -20 + + + + + + + + TDS @20% u/s 194F + TDS @20% u/s 194F + purchase + service + percent + -20 + + + + + + + + TDS @5% u/s 194G + TDS @5% u/s 194G + purchase + service + percent + -5 + + + + + + + + TDS @20% u/s 194G + TDS @20% u/s 194G + purchase + service + percent + -20 + + + + + + + + TDS @5% u/s 194H + TDS @5% u/s 194H + purchase + service + percent + -5 + + + + + + + + TDS @20% u/s 194H + TDS @20% u/s 194H + purchase + service + percent + -20 + + + + + + + + TDS @2% u/s 194I + TDS @2% u/s 194I + purchase + service + percent + -2 + + + + + + + + TDS @10% u/s 194I + TDS @10% u/s 194I + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 194I + TDS @20% u/s 194I + purchase + service + percent + -20 + + + + + + + + TDS @1% u/s 194IA + TDS @1% u/s 194IA + purchase + service + percent + -1 + + + + + + + + TDS @20% u/s 194IA + TDS @20% u/s 194IA + purchase + service + percent + -20 + + + + + + + + TDS @5% u/s 194IB + TDS @5% u/s 194IB + purchase + service + percent + -5 + + + + + + + + TDS @20% u/s 194IB + TDS @20% u/s 194IB + purchase + service + percent + -20 + + + + + + + + TDS @10% u/s 194IC + TDS @10% u/s 194IC + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 194IC + TDS @20% u/s 194IC + purchase + service + percent + -20 + + + + + + + + TDS @2% u/s 194J + TDS @2% u/s 194J + purchase + service + percent + -2 + + + + + + + + TDS @10% u/s 194J + TDS @10% u/s 194J + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 194J + TDS @20% u/s 194J + purchase + service + percent + -20 + + + + + + + + TDS @10% u/s 194K + TDS @10% u/s 194K + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 194K + TDS @20% u/s 194K + purchase + service + percent + -20 + + + + + + + + TDS @10% u/s 194LA + TDS @10% u/s 194LA + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 194LA + TDS @20% u/s 194LA + purchase + service + percent + -20 + + + + + + + + TDS @10% u/s 194LBA(1) + TDS @10% u/s 194LBA(1) + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 194LBA(1) + TDS @20% u/s 194LBA(1) + purchase + service + percent + -20 + + + + + + + + TDS @10% u/s 194LBB + TDS @10% u/s 194LBB + purchase + service + percent + -10 + + + + + + + + TDS @20% u/s 194LBB + TDS @20% u/s 194LBB + purchase + service + percent + -20 + + + + + + + + TDS @5% u/s 194LB + TDS @5% u/s 194LB + purchase + service + percent + -5 + + + + + + + + TDS @20% u/s 194LB + TDS @20% u/s 194LB + purchase + service + percent + -20 + + + + + + + + TDS @10% u/s 194LBC + TDS @10% u/s 194LBC + purchase + service + percent + -10 + + + + + + + + TDS @25% u/s 194LBC + TDS @25% u/s 194LBC + purchase + service + percent + -25 + + + + + + + + TDS @30% u/s 194LBC + TDS @30% u/s 194LBC + purchase + service + percent + -30 + + + + + + + + TDS @5% u/s 194M + TDS @5% u/s 194M + purchase + service + percent + -5 + + + + + + + + TDS @20% u/s 194M + TDS @20% u/s 194M + purchase + service + percent + -20 + + + + + + + + TDS @2% u/s 194N + TDS @2% u/s 194N + purchase + service + percent + -2 + + + + + + + + TDS @5% u/s 194N + TDS @5% u/s 194N + purchase + service + percent + -5 + + + + + + + + TDS @20% u/s 194N + TDS @20% u/s 194N + purchase + service + percent + -20 + + + + + + + + TDS @1% u/s 194O + TDS @1% u/s 194O + purchase + service + percent + -1 + + + + + + + + TDS @20% u/s 194O + TDS @20% u/s 194O + purchase + service + percent + -20 + + + + + + + + TDS @0.1% u/s 194Q + TDS @0.1% u/s 194Q + purchase + consu + percent + -0.1 + + + + + + + + TDS @10.4% u/s 195 + TDS @10.4% u/s 195 + purchase + service + percent + -10.4 + + + + + + + + TDS @15.6% u/s 195 + TDS @15.6% u/s 195 + purchase + service + percent + -15.6 + + + + + + + + TDS @20.8% u/s 195 + TDS @20.8% u/s 195 + purchase + service + percent + -20.8 + + + + + + + + TDS @31.2% u/s 195 + TDS @31.2% u/s 195 + purchase + service + percent + -31.2 + + + + + + + diff --git a/addons/l10n_in_tcs_tds/models/__init__.py b/addons/l10n_in_tcs_tds/models/__init__.py new file mode 100644 index 00000000000..9ec15f238e2 --- /dev/null +++ b/addons/l10n_in_tcs_tds/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import res_partner diff --git a/addons/l10n_in_tcs_tds/models/res_partner.py b/addons/l10n_in_tcs_tds/models/res_partner.py new file mode 100644 index 00000000000..19a1926d8a8 --- /dev/null +++ b/addons/l10n_in_tcs_tds/models/res_partner.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import api, fields, models + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + l10n_in_pan = fields.Char(string="PAN", help="""PAN enables the department to link all transactions of the person with the department. + These transactions include taxpayments, TDS/TCS credits, returns of income/wealth/gift/FBT, specified transactions, correspondence, and so on. + thus, PAN acts as an identifier for the person with the tax department.""") + + @api.model + def _commercial_fields(self): + res = super()._commercial_fields() + return res + ['l10n_in_pan'] diff --git a/addons/l10n_in_tcs_tds/views/res_partner_views.xml b/addons/l10n_in_tcs_tds/views/res_partner_views.xml new file mode 100644 index 00000000000..0c0f06630d6 --- /dev/null +++ b/addons/l10n_in_tcs_tds/views/res_partner_views.xml @@ -0,0 +1,14 @@ + + + + l10n.in.tcs.tds.res.partner.vat.inherit + res.partner + + + + + + + + +