← Back to team overview

savoirfairelinux-openerp team mailing list archive

[Merge] lp:~savoirfairelinux-openerp/openupgrade-server/obsolete into lp:openupgrade-server

 

Sandy Carter (http://www.savoirfairelinux.com) has proposed merging lp:~savoirfairelinux-openerp/openupgrade-server/obsolete into lp:openupgrade-server.

Requested reviews:
  OpenUpgrade Committers (openupgrade-committers)

For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/openupgrade-server/obsolete/+merge/234133

Factor out obsolete modules and add:
* web_process
* web_mobile
* web_dashboard
* fetchmail_crm_claim
* fetchmail_crm
* fetchmail_hr_recruitment
-- 
https://code.launchpad.net/~savoirfairelinux-openerp/openupgrade-server/obsolete/+merge/234133
Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/openupgrade-server/obsolete.
=== modified file 'openerp/addons/base/migrations/7.0.1.3/pre-migration.py'
--- openerp/addons/base/migrations/7.0.1.3/pre-migration.py	2014-01-24 16:50:48 +0000
+++ openerp/addons/base/migrations/7.0.1.3/pre-migration.py	2014-09-10 14:59:14 +0000
@@ -24,6 +24,17 @@
 
 from openupgrade import openupgrade
 
+obsolete_modules = (
+    'base_tools',
+    'base_contact',
+    'web_process',
+    'web_mobile',
+    'web_dashboard',
+    'fetchmail_crm_claim',
+    'fetchmail_crm',
+    'fetchmail_hr_recruitment',
+)
+ 
 module_namespec = [
     # This is a list of tuples (old module name, new module name)
     ('account_coda', 'l10n_be_coda'),
@@ -203,12 +214,8 @@
                 "VALUES(%s, 'res.partner', 'base', 'partner_root', TRUE) ",
                 (partner_id,))
 
-def remove_obsolete_modules(cr):
-    obsolete_modules = (
-        'base_tools',
-        'base_contact',
-        )
-    cr.execute(
+def remove_obsolete_modules(cr, obsolete_modules):
+   cr.execute(
         """
         UPDATE ir_module_module
         SET state = 'to remove'
@@ -229,4 +236,4 @@
     openupgrade.rename_models(cr, model_renames)
     migrate_ir_attachment(cr)
     create_users_partner(cr)
-    remove_obsolete_modules(cr)
+    remove_obsolete_modules(cr, obsolete_modules)


Follow ups