← Back to team overview

credativ team mailing list archive

lp:~savoirfairelinux-openerp/openupgrade-server/module_dependency into lp:openupgrade-server

 

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

Requested reviews:
  OpenUpgrade Committers (openupgrade-committers)

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

logged_query() now includes arguments in query output

update_module_names() now updates ir_module_module_dependency.name entries
-- 
https://code.launchpad.net/~savoirfairelinux-openerp/openupgrade-server/module_dependency/+merge/190744
Your team OpenUpgrade Committers is requested to review the proposed merge of lp:~savoirfairelinux-openerp/openupgrade-server/module_dependency into lp:openupgrade-server.
=== modified file 'openerp/openupgrade/openupgrade.py'
--- openerp/openupgrade/openupgrade.py	2013-07-25 06:38:34 +0000
+++ openerp/openupgrade/openupgrade.py	2013-10-11 18:58:43 +0000
@@ -318,7 +318,7 @@
     if args is None:
         args = []
     res = cr.execute(query, args)
-    logger.debug('Running %s', query)
+    logger.debug('Running %s', query % tuple(args))
     logger.debug('%s rows affected', cr.rowcount)
     return cr.rowcount
 
@@ -348,6 +348,9 @@
         query = ("UPDATE ir_model_data SET module = %s "
                  "WHERE module = %s ")
         logged_query(cr, query, (new_name, old_name))
+        query = ("UPDATE ir_module_module_dependency SET name = %s "
+                 "WHERE name = %s")
+        logged_query(cr, query, (new_name, old_name))
 
 def add_ir_model_fields(cr, columnspec):
     """


Follow ups