summaryrefslogtreecommitdiff
path: root/addons/l10n_vn
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-10-31 12:07:15 +0100
committerChristophe Simonis <chs@odoo.com>2017-10-31 12:07:15 +0100
commita0157f104f7ff94728af20702858b390d771d698 (patch)
tree76003492d182a64389a62127701c99457983d874 /addons/l10n_vn
parenta2890c1e76c9c73d80689f78aa2e6665ecdc9f31 (diff)
parentdcce040a637cafb6129ae483d4e31b64dd2070b3 (diff)
[MERGE] forward port branch 10.0 up to dcce040a637
Diffstat (limited to 'addons/l10n_vn')
-rw-r--r--addons/l10n_vn/__init__.py5
-rw-r--r--addons/l10n_vn/__manifest__.py3
2 files changed, 7 insertions, 1 deletions
diff --git a/addons/l10n_vn/__init__.py b/addons/l10n_vn/__init__.py
index 34293fdfe8d..490754ae534 100644
--- a/addons/l10n_vn/__init__.py
+++ b/addons/l10n_vn/__init__.py
@@ -2,3 +2,8 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# This module is Copyright (c) 2009-2013 General Solutions (http://gscom.vn) All Rights Reserved.
+
+
+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_vn')
diff --git a/addons/l10n_vn/__manifest__.py b/addons/l10n_vn/__manifest__.py
index ba785e72388..1f318b54b8a 100644
--- a/addons/l10n_vn/__manifest__.py
+++ b/addons/l10n_vn/__manifest__.py
@@ -28,5 +28,6 @@ with Chart of account under Circular No. 200/2014/TT-BTC
'data/l10n_vn_chart_data.xml',
'data/account_tax_data.xml',
'data/account_chart_template_data.yml',
- ]
+ ],
+ 'post_init_hook': '_preserve_tag_on_taxes',
}