From 6a3683f116ef051a0f883fdc8ef3d10095d7ebd8 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Mon, 21 Oct 2013 14:47:48 +0200 Subject: [PATCH] [FIX] l10n_fr: 2014 tax update patch has removed obsolete templates, causing an error at module update Due to the relationship between fiscal position templates and tax templates, the removal of obsolete tax templates may crash if the corresponding fiscal positions are not deleted before. In a recent l10n_fr patch [1] a number of templates disappeared, which causes an error during subsequent updates on databases where the obsolete templates are still present. As a workaround, we can force a deletion of all fiscal position templates before loading them. This is relatively safe because the templates are not connected to live data, and will be re-created during the update (except for the obsolete ones which will be gone forever). [1] addons 7.0 rev 9515 rev-id: odo@openerp.com-20131010114424-atzr3bl9e9diir2g lp bug: https://launchpad.net/bugs/1240265 fixed bzr revid: odo@openerp.com-20131021124748-x4jnibwyab4gam23 --- addons/l10n_fr/fr_fiscal_templates.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/l10n_fr/fr_fiscal_templates.xml b/addons/l10n_fr/fr_fiscal_templates.xml index b11f8d4f0dd..bf49d15e08c 100644 --- a/addons/l10n_fr/fr_fiscal_templates.xml +++ b/addons/l10n_fr/fr_fiscal_templates.xml @@ -2,6 +2,12 @@ + + + +