=== added file 'stock_location/migrations/7.0.1.0/post-migration.py'
--- stock_location/migrations/7.0.1.0/post-migration.py 1970-01-01 00:00:00 +0000
+++ stock_location/migrations/7.0.1.0/post-migration.py 2014-08-08 15:31:25 +0000
@@ -0,0 +1,33 @@
+# -*- 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 .
+#
+##############################################################################
+
+from openerp import pooler
+from openerp.openupgrade import openupgrade, openupgrade_70
+
+def migrate_partners(cr, pool):
+ openupgrade_70.set_partner_id_from_partner_address_id(
+ cr, pool, 'product.pulled.flow',
+ 'partner_address_id', openupgrade.get_legacy_name('partner_address_id'))
+
+@openupgrade.migrate()
+def migrate(cr, version):
+ pool = pooler.get_pool(cr.dbname)
+ migrate_partners(cr, pool)
=== added file 'stock_location/migrations/7.0.1.0/pre-migration.py'
--- stock_location/migrations/7.0.1.0/pre-migration.py 1970-01-01 00:00:00 +0000
+++ stock_location/migrations/7.0.1.0/pre-migration.py 2014-08-08 15:31:25 +0000
@@ -0,0 +1,33 @@
+# -*- 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 .
+#
+##############################################################################
+
+from openerp.openupgrade import openupgrade
+
+column_renames = {
+ # Using magic None value to trigger call to get_legacy_name()
+ 'product_pulled_flow':[
+ ('partner_address_id', None),
+ ],
+}
+
+@openupgrade.migrate()
+def migrate(cr, version):
+ openupgrade.rename_columns(cr, column_renames)