Sylvain LE GAL (GRAP) has proposed merging lp:~sylvain-legal/openupgrade-addons/7.0-mrp into lp:openupgrade-addons with lp:~sylvain-legal/openupgrade-addons/7.0-procurement as a prerequisite.
Requested reviews: OpenUpgrade Committers (openupgrade-committers) For more details, see: https://code.launchpad.net/~sylvain-legal/openupgrade-addons/7.0-mrp/+merge/186298 -- https://code.launchpad.net/~sylvain-legal/openupgrade-addons/7.0-mrp/+merge/186298 Your team OpenUpgrade Committers is requested to review the proposed merge of lp:~sylvain-legal/openupgrade-addons/7.0-mrp into lp:openupgrade-addons.
=== added file 'mrp/migrations/7.0.1.1/openupgrade_analysis_work.txt' --- mrp/migrations/7.0.1.1/openupgrade_analysis_work.txt 1970-01-01 00:00:00 +0000 +++ mrp/migrations/7.0.1.1/openupgrade_analysis_work.txt 2013-09-18 12:11:18 +0000 @@ -0,0 +1,68 @@ +---Fields in module 'mrp'--- + +### Ignore, no existing data to push as messages +mrp / mrp.bom / message_ids (one2many) : NEW relation: mail.message + +### 'mrp.bom.revision' object has been fully deleted in V7. Nothing to do. +mrp / mrp.bom / revision_ids (one2many) : DEL relation: mrp.bom.revision + +### Ignore, no existing data to push as messages +mrp / mrp.production / message_ids (one2many) : NEW relation: mail.message + +### Ignore, no existing data to push as messages +mrp / mrp.production.workcenter.line / message_ids (one2many) : NEW relation: mail.message + +### 'procurement.order' has now 'mrp.production' relation. It's not possible to know the relation for existing 'procurement.order'. Nothing to do. +mrp / procurement.order / production_id (many2one) : NEW relation: mrp.production + +---XML records in module 'mrp'--- + +### Ignore interface and access records +NEW ir.actions.act_window: mrp.action_mrp_configuration +NEW ir.actions.act_window: mrp.product_open_bom +NEW ir.actions.act_window: mrp.product_supply_method_produce +DEL ir.actions.act_window: mrp.act_product_product_2_mrp_bom +DEL ir.actions.act_window: mrp.action_configure_workcenter +DEL ir.actions.act_window: mrp.product_form_config_action +NEW ir.actions.client: mrp.action_client_mrp_menu +NEW ir.actions.todo: base.open_menu +DEL ir.actions.todo: mrp.config_wizard_res_product_installer +DEL ir.actions.todo: mrp.todo_action_configure_workcenter +DEL ir.actions.todo: mrp.todo_action_create_bill_of_materials +DEL ir.actions.todo.category: mrp.category_mrp_config +NEW ir.model.access: mrp.access_mrp_bom_purchase_manager +NEW ir.model.access: mrp.access_stock_warehouse_orderpoint_user +DEL ir.model.access: mrp.access_mrp_bom_revision +DEL ir.model.access: mrp.access_mrp_bom_revision_manager +DEL ir.model.access: mrp.access_procurement_stock_worker +DEL ir.model.access: mrp.access_res_partner_address +DEL ir.model.access: mrp.access_stock_warehouse_orderpoint_manager +NEW ir.ui.menu: base.menu_mrp_config +NEW ir.ui.menu: mrp.menu_mrp_product_form +DEL ir.ui.menu: mrp.menus_dash_mrp +NEW ir.ui.view: mrp.product_form_view_bom_button +NEW ir.ui.view: mrp.product_product_normal_form_supply_view +NEW ir.ui.view: mrp.view_mrp_config +DEL ir.ui.view: mrp.mrp_bom_revision_form +DEL ir.ui.view: mrp.mrp_bom_revision_tree +DEL ir.ui.view: mrp.mrp_production_lot_form_view +DEL ir.ui.view: mrp.mrp_production_lot_tree_view + +### Ignore added chatter configuration +NEW mail.message: mrp.module_install_notification + +### Ignore new feature groups +NEW res.groups: mrp.group_mrp_routings + +### xml_id rename. (Cf. user_notes.txt #1) +# 'mrp.trans_product_check_produce' replaced by 'mrp.trans_confirm_mto_need_production' +DEL workflow.transition: mrp.trans_product_check_produce +NEW workflow.transition: mrp.trans_confirm_mto_need_production + +# 'procurement.trans_produce_make_done' replaced by 'mrp.trans_produce_finished_prod' +DEL workflow.transition: procurement.trans_produce_make_done +NEW workflow.transition: mrp.trans_produce_finished_prod + +# Deleted by 'procurement migration. Nothing to do. +DEL workflow.transition: procurement.trans_confirm_confirm_wait + === added file 'mrp/migrations/7.0.1.1/pre-migration.py' --- mrp/migrations/7.0.1.1/pre-migration.py 1970-01-01 00:00:00 +0000 +++ mrp/migrations/7.0.1.1/pre-migration.py 2013-09-18 12:11:18 +0000 @@ -0,0 +1,31 @@ +# -*- 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 = [ + ('mrp.trans_product_check_produce', 'mrp.trans_confirm_mto_need_production'), + ('procurement.trans_produce_make_done', 'mrp.trans_produce_finished_prod'), +] + [email protected]() +def migrate(cr, version): + openupgrade.rename_xmlids(cr, xmlid_renames) === added file 'mrp/migrations/7.0.1.1/user_notes.txt' --- mrp/migrations/7.0.1.1/user_notes.txt 1970-01-01 00:00:00 +0000 +++ mrp/migrations/7.0.1.1/user_notes.txt 2013-09-18 12:11:18 +0000 @@ -0,0 +1,5 @@ +The migration script has only changes in workflows. +The changes are based on changes in 'procurement' module. +- See 'procurement' migration ; +- See also Analysis of changes of 'procurement.order' workflow, available here : +http://postimg.org/image/om87dt0xz/full/
-- Mailing list: https://launchpad.net/~credativ Post to : [email protected] Unsubscribe : https://launchpad.net/~credativ More help : https://help.launchpad.net/ListHelp

