← Back to team overview

credativ team mailing list archive

[Merge] lp:~sylvain-legal/openupgrade-addons/7.0_l10n_fr into lp:openupgrade-addons

 

Sylvain LE GAL (GRAP) has proposed merging lp:~sylvain-legal/openupgrade-addons/7.0_l10n_fr into lp:openupgrade-addons.

Requested reviews:
  Stefan Rijnhart (Therp) (stefan-therp)

For more details, see:
https://code.launchpad.net/~sylvain-legal/openupgrade-addons/7.0_l10n_fr/+merge/183876

[ADD] analysis and script migration for 'l10n_fr' module.
-- 
https://code.launchpad.net/~sylvain-legal/openupgrade-addons/7.0_l10n_fr/+merge/183876
Your team OpenUpgrade Committers is subscribed to branch lp:openupgrade-addons.
=== added file 'l10n_fr/migrations/7.0.1.1/openupgrade_analysis_work.txt'
--- l10n_fr/migrations/7.0.1.1/openupgrade_analysis_work.txt	1970-01-01 00:00:00 +0000
+++ l10n_fr/migrations/7.0.1.1/openupgrade_analysis_work.txt	2013-09-05 20:38:50 +0000
@@ -0,0 +1,32 @@
+---Fields in module 'l10n_fr'---
+# New fields for company. Nothing to do.
+l10n_fr      / res.company              / ape (char)                    : NEW 
+l10n_fr      / res.company              / siret (char)                  : NEW 
+
+---XML records in module 'l10n_fr'---
+# 'tva_acq_normale_inclue' renamed by 'tva_acq_normale_TTC'. OK
+DEL account.tax.template: l10n_fr.tva_acq_normale_inclue
+NEW account.tax.template: l10n_fr.tva_acq_normale_TTC
+
+# 'tva_acq_specifique_inclue' renamed by 'tva_acq_specifique_TTC'. OK
+DEL account.tax.template: l10n_fr.tva_acq_specifique_inclue
+NEW account.tax.template: l10n_fr.tva_acq_specifique_TTC
+
+# 'tva_acq_specifique_1_inclue' renamed by 'tva_acq_specifique_1_TTC'. OK
+DEL account.tax.template: l10n_fr.tva_acq_specifique_1_inclue
+NEW account.tax.template: l10n_fr.tva_acq_specifique_1_TTC
+
+# 'tva_acq_reduite_inclue' renamed by 'tva_acq_reduite_TTC'. OK
+DEL account.tax.template: l10n_fr.tva_acq_reduite_inclue
+NEW account.tax.template: l10n_fr.tva_acq_reduite_TTC
+
+# 'tva_acq_super_reduite_inclue' renamed by 'tva_acq_super_reduite_TTC'. OK
+DEL account.tax.template: l10n_fr.tva_acq_super_reduite_inclue
+NEW account.tax.template: l10n_fr.tva_acq_super_reduite_TTC
+
+# New action.todo from 'account' module replacing the old actions.todo from 'l10n_fr' module. Nothing to do.
+DEL ir.actions.todo: l10n_fr.config_call_account_template_fr
+NEW ir.actions.todo: account.action_wizard_multi_chart_todo
+
+# New herited view for adding ape and siret field. OK.
+NEW ir.ui.view: l10n_fr.res_company_form_l10n_fr

=== added file 'l10n_fr/migrations/7.0.1.1/post-migration.py'
--- l10n_fr/migrations/7.0.1.1/post-migration.py	1970-01-01 00:00:00 +0000
+++ l10n_fr/migrations/7.0.1.1/post-migration.py	2013-09-05 20:38:50 +0000
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2013 Sylvain LE GAL
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp.openupgrade import openupgrade
+
+@openupgrade.migrate()
+def migrate(cr, version):
+    pass

=== added file 'l10n_fr/migrations/7.0.1.1/pre-migration.py'
--- l10n_fr/migrations/7.0.1.1/pre-migration.py	1970-01-01 00:00:00 +0000
+++ l10n_fr/migrations/7.0.1.1/pre-migration.py	2013-09-05 20:38:50 +0000
@@ -0,0 +1,34 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2013 Sylvain LE GAL
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp.openupgrade import openupgrade
+
+xmlid_renames = [
+    ('l10n_fr.tva_acq_normale_inclue', 'l10n_fr.tva_acq_normale_TTC'),
+    ('l10n_fr.tva_acq_specifique_inclue', 'l10n_fr.tva_acq_specifique_TTC'),
+    ('l10n_fr.tva_acq_specifique_1_inclue', 'l10n_fr.tva_acq_specifique_1_TTC'),
+    ('l10n_fr.tva_acq_reduite_inclue', 'l10n_fr.tva_acq_reduite_TTC'),
+    ('l10n_fr.tva_acq_super_reduite_inclue', 'l10n_fr.tva_acq_super_reduite_TTC'),
+]
+
+@openupgrade.migrate()
+def migrate(cr, version):
+    openupgrade.rename_xmlids(cr, xmlid_renames)


Follow ups