From d98ff179d503545536c812ac01be18b1d22b4c9c Mon Sep 17 00:00:00 2001 From: smdc-odoo Date: Mon, 26 Dec 2022 16:57:38 +0000 Subject: [PATCH] [IMP] l10n_sg: Change the Goods and Service tax rate Starting from 1 January 2023, the Goods and Services Tax rate (GST) will change and go from 7% to 8% task-3098705 closes odoo/odoo#108964 X-original-commit: 9b039531bd0073f8abe1e6e949c2031615aa15a3 Signed-off-by: Josse Colpaert Signed-off-by: Simon Morais Da Cunha (smdc) --- addons/l10n_sg/__manifest__.py | 2 +- addons/l10n_sg/data/account_tax_data.xml | 514 +++++++++++++++++- .../l10n_sg/data/account_tax_group_data.xml | 5 + addons/l10n_sg/data/l10n_sg_chart_data.xml | 2 +- .../migrations/2.1/post-migrate_update_tax.py | 6 + 5 files changed, 524 insertions(+), 5 deletions(-) create mode 100644 addons/l10n_sg/migrations/2.1/post-migrate_update_tax.py diff --git a/addons/l10n_sg/__manifest__.py b/addons/l10n_sg/__manifest__.py index 34b8b7fc8d7..94fd7f9a2cf 100644 --- a/addons/l10n_sg/__manifest__.py +++ b/addons/l10n_sg/__manifest__.py @@ -6,7 +6,7 @@ { 'name': 'Singapore - Accounting', 'author': 'Tech Receptives', - 'version': '2.0', + 'version': '2.1', 'category': 'Accounting/Localizations/Account Charts', 'description': """ Singapore accounting chart and localization. diff --git a/addons/l10n_sg/data/account_tax_data.xml b/addons/l10n_sg/data/account_tax_data.xml index fd59b1f0338..c38ff8b4fad 100644 --- a/addons/l10n_sg/data/account_tax_data.xml +++ b/addons/l10n_sg/data/account_tax_data.xml @@ -13,23 +13,65 @@ + + + Sales Tax 7% DS + 7% DS + + 7 + percent + sale + + + + + + Sales Tax 8% DS 8% DS @@ -41,10 +83,12 @@ + Sales Tax 0% ESN33 0% ESN33 @@ -73,23 +120,28 @@ + Sales Tax 0% OS 0% OS @@ -101,21 +153,26 @@ + Sales Tax 0% ZR 0% ZR @@ -127,23 +184,65 @@ + + + Sales Tax 7% SR + 7% SR + + 7 + percent + sale + + + + + + Sales Tax 8% SR 8% SR @@ -155,10 +254,12 @@ + Sales Tax SRCA-S SRCA-S @@ -187,23 +291,65 @@ + + + Sales Tax 7% SRCA-C + 7% SRCA-C + + 7 + percent + sale + + + + + + Sales Tax 8% SRCA-C 8% SRCA-C @@ -215,10 +361,12 @@ + + + + Purchase Tax 7% TX-N33 + 7% TX-N33 + + 7 + percent + purchase + + + + + + Purchase Tax 8% TX-N33 8% TX-N33 @@ -248,10 +437,12 @@ + + + Purchase Tax 7% TX-E33 + 7% TX-E33 + + 7 + percent + purchase + + + + + + Purchase Tax 8% TX-E33 8% TX-E33 @@ -280,10 +511,12 @@ + + + Purchase Tax 7% BL + 7% BL + + 7 + percent + purchase + + + + + + Purchase Tax 8% BL 8% BL @@ -312,23 +581,65 @@ + + + Purchase Tax 7% IM + 7% IM + + 7 + percent + purchase + + + + + + Purchase Tax 8% IM 8% IM @@ -340,10 +651,12 @@ + + + Purchase Tax 7% TX-RE + 7% TX-RE + + 7 + percent + purchase + + + + + + Purchase Tax 8% TX-RE 8% TX-RE @@ -372,10 +725,12 @@ + + Purchase Tax 7% IGDS + 7% IGDS + + 7 + percent + purchase + + + + + + + Purchase Tax 8% IGDS 8% IGDS @@ -404,10 +799,12 @@ + Purchase Tax 0% NR 0% NR @@ -436,21 +836,26 @@ + Purchase Tax 0% ZP 0% ZP @@ -462,23 +867,28 @@ + Purchase Tax 0% OP 0% OP @@ -490,21 +900,26 @@ + Purchase Tax 0% EP 0% EP @@ -516,21 +931,26 @@ + Purchase Tax MES 0% MES @@ -542,26 +962,68 @@ - - Purchase Tax 8% TX7 - 8% TX7 + + + Purchase Tax 7% TX7 + 7% TX7 + + 7 + percent + purchase + + + + + + + + Purchase Tax 8% TX8 + 8% TX8 8 percent @@ -570,10 +1032,12 @@ + + + Purchase Tax 7% TXCA + 7% TXCA + + 7 + percent + purchase + + + + + + Purchase Tax 8% TXCA 8% TXCA @@ -602,10 +1106,12 @@ TAX 8% + + TAX 7% + + + diff --git a/addons/l10n_sg/data/l10n_sg_chart_data.xml b/addons/l10n_sg/data/l10n_sg_chart_data.xml index f8e7f73d704..833279ea5ac 100644 --- a/addons/l10n_sg/data/l10n_sg_chart_data.xml +++ b/addons/l10n_sg/data/l10n_sg_chart_data.xml @@ -405,7 +405,7 @@ - Purchase Tax Account 8% TX7 + Purchase Tax Account 8% TX8 101370 asset_current diff --git a/addons/l10n_sg/migrations/2.1/post-migrate_update_tax.py b/addons/l10n_sg/migrations/2.1/post-migrate_update_tax.py new file mode 100644 index 00000000000..b8e0213c44d --- /dev/null +++ b/addons/l10n_sg/migrations/2.1/post-migrate_update_tax.py @@ -0,0 +1,6 @@ +# Part of Odoo. See LICENSE file for full copyright and licensing details. +from odoo.addons.account.models.chart_template import update_taxes_from_templates + + +def migrate(cr, version): + update_taxes_from_templates(cr, 'l10n_sg.sg_chart_template')