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

Proposed by Stefan Rijnhart (Opener)
Status: Merged
Merged at revision: 6616
Proposed branch: lp:~therp-nl/openupgrade-addons/6.1-lp1080428-rename_analytic_user_funct_grid
Merge into: lp:openupgrade-addons/6.1
Diff against target: 40 lines (+30/-1)
2 files modified
analytic_user_function/migrations/6.1.1.0/pre-migration.py (+29/-0)
analytic_user_function/migrations/6.1.1.0/user_notes.txt (+1/-1)
To merge this branch: bzr merge lp:~therp-nl/openupgrade-addons/6.1-lp1080428-rename_analytic_user_funct_grid
Reviewer Review Type Date Requested Status
Holger Brunn (Therp) Approve
Review via email: mp+134821@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Holger Brunn (Therp) (hbrunn) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'analytic_user_function/migrations/6.1.1.0/pre-migration.py'
2--- analytic_user_function/migrations/6.1.1.0/pre-migration.py 1970-01-01 00:00:00 +0000
3+++ analytic_user_function/migrations/6.1.1.0/pre-migration.py 2012-11-18 19:48:20 +0000
4@@ -0,0 +1,29 @@
5+# -*- coding: utf-8 -*-
6+##############################################################################
7+#
8+# OpenERP, Open Source Management Solution
9+# This module copyright (C) 2012 Therp BV (<http://therp.nl>).
10+#
11+# This program is free software: you can redistribute it and/or modify
12+# it under the terms of the GNU Affero General Public License as
13+# published by the Free Software Foundation, either version 3 of the
14+# License, or (at your option) any later version.
15+#
16+# This program is distributed in the hope that it will be useful,
17+# but WITHOUT ANY WARRANTY; without even the implied warranty of
18+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+# GNU Affero General Public License for more details.
20+#
21+# You should have received a copy of the GNU Affero General Public License
22+# along with this program. If not, see <http://www.gnu.org/licenses/>.
23+#
24+##############################################################################
25+
26+from openerp.openupgrade import openupgrade
27+
28+@openupgrade.migrate()
29+def migrate(cr, version):
30+ openupgrade.rename_models(cr, [
31+ ('analytic_user_funct_grid',
32+ 'analytic.user.funct.grid'),
33+ ])
34
35=== modified file 'analytic_user_function/migrations/6.1.1.0/user_notes.txt'
36--- analytic_user_function/migrations/6.1.1.0/user_notes.txt 2012-06-12 10:51:34 +0000
37+++ analytic_user_function/migrations/6.1.1.0/user_notes.txt 2012-11-18 19:48:20 +0000
38@@ -1,1 +1,1 @@
39-Nothing to do for 'analytic_user_function'
40+This upgrade only updates the internal reference name of the analytic user model.

Subscribers

People subscribed via source and target branches