Stefan Rijnhart (Therp) has proposed merging lp:~therp-nl/openupgrade-addons/6.0-base_report_creator into lp:openupgrade-addons/6.0.
Requested reviews: OpenUpgrade Committers (openupgrade-committers) For more details, see: https://code.launchpad.net/~therp-nl/openupgrade-addons/6.0-base_report_creator/+merge/111422 base_report_creator: Set new 'result' model in existing act_windows -- https://code.launchpad.net/~therp-nl/openupgrade-addons/6.0-base_report_creator/+merge/111422 Your team OpenUpgrade Committers is requested to review the proposed merge of lp:~therp-nl/openupgrade-addons/6.0-base_report_creator into lp:openupgrade-addons/6.0.
=== added file 'base_report_creator/migrations/6.0.1.0/pre-migration.py' --- base_report_creator/migrations/6.0.1.0/pre-migration.py 1970-01-01 00:00:00 +0000 +++ base_report_creator/migrations/6.0.1.0/pre-migration.py 2012-06-21 15:03:37 +0000 @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This migration script 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 + [email protected]() +def migrate(cr, version): + #the object to show a report is now base_report_creator_report.result + #but reports are still configured with base_report_creator.report + cr.execute(""" + update ir_act_window set + res_model='base_report_creator_report.result' + where + res_model='base_report_creator.report' + and + context like '{''report_id'':%}'""") === modified file 'base_report_creator/migrations/6.0.1.0/user_notes.txt' --- base_report_creator/migrations/6.0.1.0/user_notes.txt 2012-05-21 15:35:12 +0000 +++ base_report_creator/migrations/6.0.1.0/user_notes.txt 2012-06-21 15:03:37 +0000 @@ -1,1 +1,2 @@ -Nothing to do for module base_report_creator +This upgrade switches the model in the created reports' action windows to the new 'Report Result' model. +
-- Mailing list: https://launchpad.net/~credativ Post to : [email protected] Unsubscribe : https://launchpad.net/~credativ More help : https://help.launchpad.net/ListHelp

