← Back to team overview

credativ team mailing list archive

lp:~therp-nl/openupgrade-addons/6.1-lp1080428-rename_analytic_user_funct_grid into lp:openupgrade-addons

 

Stefan Rijnhart (Therp) has proposed merging lp:~therp-nl/openupgrade-addons/6.1-lp1080428-rename_analytic_user_funct_grid into lp:openupgrade-addons.

Requested reviews:
  OpenUpgrade Committers (openupgrade-committers)
Related bugs:
  Bug #1080428 in OpenUpgrade Addons: "6.1, analytic_user_function: model renamed"
  https://bugs.launchpad.net/openupgrade-addons/+bug/1080428

For more details, see:
https://code.launchpad.net/~therp-nl/openupgrade-addons/6.1-lp1080428-rename_analytic_user_funct_grid/+merge/134821
-- 
https://code.launchpad.net/~therp-nl/openupgrade-addons/6.1-lp1080428-rename_analytic_user_funct_grid/+merge/134821
Your team OpenUpgrade Committers is requested to review the proposed merge of lp:~therp-nl/openupgrade-addons/6.1-lp1080428-rename_analytic_user_funct_grid into lp:openupgrade-addons.
=== added file 'analytic_user_function/migrations/6.1.1.0/pre-migration.py'
--- analytic_user_function/migrations/6.1.1.0/pre-migration.py	1970-01-01 00:00:00 +0000
+++ analytic_user_function/migrations/6.1.1.0/pre-migration.py	2012-11-18 19:48:20 +0000
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2012 Therp BV (<http://therp.nl>).
+#
+#    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):
+    openupgrade.rename_models(cr, [
+            ('analytic_user_funct_grid',
+             'analytic.user.funct.grid'),
+            ])

=== modified file 'analytic_user_function/migrations/6.1.1.0/user_notes.txt'
--- analytic_user_function/migrations/6.1.1.0/user_notes.txt	2012-06-12 10:51:34 +0000
+++ analytic_user_function/migrations/6.1.1.0/user_notes.txt	2012-11-18 19:48:20 +0000
@@ -1,1 +1,1 @@
-Nothing to do for 'analytic_user_function'
+This upgrade only updates the internal reference name of the analytic user model.


Follow ups