summaryrefslogtreecommitdiff
path: root/addons/l10n_sg
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-10-31 16:29:07 +0100
committerChristophe Simonis <chs@odoo.com>2017-10-31 16:29:07 +0100
commit8f1e2044cd9dd0e3d5ab29f7527efdb0a9c7a582 (patch)
treeb531c2fbd3a85855c6691cb707435a3db89162e3 /addons/l10n_sg
parentc8b2f5ca9ec0bbb5af06be8f8cf93122d08c41fe (diff)
parent810b6aa7600bad6bba4d0fc67f04ecf4975193d5 (diff)
[MERGE] forward port branch saas-16 up to 810b6aa7600
Diffstat (limited to 'addons/l10n_sg')
-rw-r--r--addons/l10n_sg/__init__.py5
-rw-r--r--addons/l10n_sg/__manifest__.py1
2 files changed, 6 insertions, 0 deletions
diff --git a/addons/l10n_sg/__init__.py b/addons/l10n_sg/__init__.py
index b286495ed4a..e2f7da260d0 100644
--- a/addons/l10n_sg/__init__.py
+++ b/addons/l10n_sg/__init__.py
@@ -2,3 +2,8 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Copyright (C) 2014 Tech Receptives (<http://techreceptives.com>).
+
+
+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_sg')
diff --git a/addons/l10n_sg/__manifest__.py b/addons/l10n_sg/__manifest__.py
index 2df4ef0e928..d05a6c0958e 100644
--- a/addons/l10n_sg/__manifest__.py
+++ b/addons/l10n_sg/__manifest__.py
@@ -33,4 +33,5 @@ After installing this module, the Configuration wizard for accounting is launche
'data/account_tax_data.xml',
'data/account_chart_template_data.yml',
],
+ 'post_init_hook': '_preserve_tag_on_taxes',
}