credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #05466
[Merge] lp:~sylvain-legal/openupgrade-addons/7.0-procurement into lp:openupgrade-addons
Sylvain LE GAL (GRAP) has proposed merging lp:~sylvain-legal/openupgrade-addons/7.0-procurement 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-procurement/+merge/184206
[ADD] 'procurement' analysis. (no change. no script migration)
--
https://code.launchpad.net/~sylvain-legal/openupgrade-addons/7.0-procurement/+merge/184206
Your team OpenUpgrade Committers is subscribed to branch lp:openupgrade-addons.
=== added file 'procurement/migrations/7.0.1.0/openupgrade_analysis_work.txt'
--- procurement/migrations/7.0.1.0/openupgrade_analysis_work.txt 1970-01-01 00:00:00 +0000
+++ procurement/migrations/7.0.1.0/openupgrade_analysis_work.txt 2013-09-13 11:50:57 +0000
@@ -0,0 +1,41 @@
+---Fields in module 'procurement'---
+# Ignore, no existing data to push as messages
+procurement / procurement.order / message_ids (one2many) : NEW relation: mail.message
+
+# Ignore, change type.
+procurement / procurement.order / name (char) : type is now 'text' ('char')
+
+### Not a new field. 'type' field was in 'product' module before with the selection keys.
+# Ref 6.1. addons/product/product.py
+# Ref 7.0. addons/procurements/procurement.py
+procurement / product.template / type (False) : NEW selection_keys: ['consu', 'product', 'service'], mode: modify
+
+
+---XML records in module 'procurement'---
+
+# act_produce_check is not a real activity because its action is None. No possibility to have a object in this state. Nothing to do.
+DEL workflow.activity: procurement.act_produce_check
+
+# following transaction is between act_confirm_mto and act_produce_check. Deleted. Nothing to do.
+DEL workflow.transition: procurement.trans_confirm_mto_produce_check
+
+# new Transition. Nothing to do.
+NEW workflow.transition: procurement.trans_confirm_mto_make_done
+
+### moved from 'procurement' to 'project_mrp' module.
+DEL workflow.activity: procurement.act_produce_service
+DEL workflow.transition: procurement.trans_produce_service_cancel
+DEL workflow.transition: procurement.trans_produce_service_make_done
+DEL workflow.transition: procurement.trans_product_check_produce_service
+
+### moved from 'procurement' to 'purchase' module.
+DEL workflow.transition: procurement.trans_confirm_mto_purchase
+
+### Ignore interface and access records
+NEW ir.actions.act_window: procurement.product_open_orderpoint
+DEL ir.actions.act_window: procurement.act_product_product_2_stock_warehouse_orderpoint
+
+NEW ir.ui.view: procurement.product_form_view_procurement_button
+NEW ir.ui.view: procurement.product_search_form_view_procurment
+NEW ir.ui.view: procurement.product_template_form_view_procurement
+DEL ir.ui.view: procurement.product_normal_form_view
=== added file 'procurement/migrations/7.0.1.0/pre-migration.py'
--- procurement/migrations/7.0.1.0/pre-migration.py 1970-01-01 00:00:00 +0000
+++ procurement/migrations/7.0.1.0/pre-migration.py 2013-09-13 11:50:57 +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 = [
+ ('procurement.trans_confirm_mto_purchase', 'purchase.trans_confirm_mto_purchase'),
+ ('procurement.act_produce_service', 'project_mrp.act_produce_service'),
+ ('procurement.trans_produce_service_cancel', 'project_mrp.trans_produce_service_cancel'),
+ ('procurement.trans_produce_service_make_done', 'project_mrp.trans_produce_service_make_done'),
+ ('procurement.trans_product_check_produce_service', 'project_mrp.trans_product_check_produce_service'),
+]
+
+@openupgrade.migrate()
+def migrate(cr, version):
+ openupgrade.rename_xmlids(cr, xmlid_renames)
=== added file 'procurement/migrations/7.0.1.0/user_notes.txt'
--- procurement/migrations/7.0.1.0/user_notes.txt 1970-01-01 00:00:00 +0000
+++ procurement/migrations/7.0.1.0/user_notes.txt 2013-09-13 11:50:57 +0000
@@ -0,0 +1,2 @@
+The migration script has only changes in workflows.
+Analysis of changes available here. http://postimg.org/image/om87dt0xz/full/
Follow ups