From c44024b50befd4d8237c53bb18738e0aac4107f3 Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Fri, 27 Oct 2017 12:38:33 +0200 Subject: [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 --- addons/l10n_sg/__init__.py | 5 +++++ addons/l10n_sg/__openerp__.py | 1 + 2 files changed, 6 insertions(+) (limited to 'addons/l10n_sg') diff --git a/addons/l10n_sg/__init__.py b/addons/l10n_sg/__init__.py index 5c72bf53544..3d96174edc6 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 (). + + +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_sg') diff --git a/addons/l10n_sg/__openerp__.py b/addons/l10n_sg/__openerp__.py index 55d16ecda57..7793a266a02 100644 --- a/addons/l10n_sg/__openerp__.py +++ b/addons/l10n_sg/__openerp__.py @@ -34,4 +34,5 @@ After installing this module, the Configuration wizard for accounting is launche 'account_chart_template.yml', ], 'installable': True, + 'post_init_hook': '_preserve_tag_on_taxes', } -- cgit v1.2.3