← Back to team overview

savoirfairelinux-openerp team mailing list archive

[Merge] lp:~savoirfairelinux-openerp/openerp-mgmtsystem/upgrade-param-fix into lp:openerp-mgmtsystem

 

Sandy Carter (http://www.savoirfairelinux.com) has proposed merging lp:~savoirfairelinux-openerp/openerp-mgmtsystem/upgrade-param-fix into lp:openerp-mgmtsystem.

Requested reviews:
  Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
  OpenERP Management System Core Editors (openerp-mgmtsystem-core-editors)

For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-mgmtsystem/upgrade-param-fix/+merge/212161

Fix to a bug shamefully introduced by myself in https://code.launchpad.net/~savoirfairelinux-openerp/openerp-mgmtsystem/openupgrade70/+merge/192730
-- 
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-mgmtsystem/upgrade-param-fix/+merge/212161
Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/openerp-mgmtsystem/upgrade-param-fix.
=== modified file 'mgmtsystem_action/migrations/7.0.1.0/post-migration.py'
--- mgmtsystem_action/migrations/7.0.1.0/post-migration.py	2014-03-14 15:53:50 +0000
+++ mgmtsystem_action/migrations/7.0.1.0/post-migration.py	2014-03-21 13:57:49 +0000
@@ -24,10 +24,12 @@
 import logging
 logger = logging.getLogger('upgrade')
 
+
 def get_legacy_name(original_name):
     return 'legacy_' + ('_').join(
         map(str, release.version_info[0:2])) + '_' + original_name
 
+
 def logged_query(cr, query, args=None):
     if args is None:
         args = []
@@ -60,7 +62,7 @@
         SELECT column_name
         FROM information_schema.columns
         WHERE table_name = 'mgmtsystem_action'
-          AND column_name = %s""", legacy_stage_name)
+          AND column_name = %s""", [legacy_stage_name])
     if not cr.fetchall():
         return
     query = """