diff options
| author | Laurent Smet <las@openerp.com> | 2017-10-27 12:38:33 +0200 |
|---|---|---|
| committer | Laurent Smet <las@openerp.com> | 2017-10-27 13:54:31 +0200 |
| commit | c44024b50befd4d8237c53bb18738e0aac4107f3 (patch) | |
| tree | e69759acbd1ac27194a35f13308f47dd41e1c903 /addons/l10n_vn | |
| parent | e47e78e2e9005268bc7ba6d22ac581c6cec23e82 (diff) | |
[FIX] account, l10n_*: preserve existing tags on upgrade
Taxes tags for some localization have been rewrote in order to improve the taxes report.
However, these changes delete the existing account.tags on stable version.
These "[l10n_*] one tag per grid in tax reports" should target master instead of 9.0.
-opw: 777464
Diffstat (limited to 'addons/l10n_vn')
| -rw-r--r-- | addons/l10n_vn/__init__.py | 5 | ||||
| -rw-r--r-- | addons/l10n_vn/__openerp__.py | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/addons/l10n_vn/__init__.py b/addons/l10n_vn/__init__.py index 34293fdfe8d..665f0578bbe 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 openerp.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/__openerp__.py b/addons/l10n_vn/__openerp__.py index ef8efe0555d..b495d0914c9 100644 --- a/addons/l10n_vn/__openerp__.py +++ b/addons/l10n_vn/__openerp__.py @@ -21,4 +21,5 @@ This module applies to companies based in Vietnamese Accounting Standard (VAS). "data" : ["account_chart.xml","account_tax.xml","account_chart_template.yml"], "demo" : [], "installable": True, + 'post_init_hook': '_preserve_tag_on_taxes', } |
