Stephane Wirtel (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-server/trunk-fix_complexity_in_loading_modules-stw 
into lp:openobject-server.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-fix_complexity_in_loading_modules-stw/+merge/77679

The complexity is not stored by the server during the creation of the database.

This patch fixes this bug.
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-fix_complexity_in_loading_modules-stw/+merge/77679
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/trunk-fix_complexity_in_loading_modules-stw.
=== modified file 'openerp/addons/base/base.sql'
--- openerp/addons/base/base.sql	2011-07-26 11:12:11 +0000
+++ openerp/addons/base/base.sql	2011-09-30 10:02:38 +0000
@@ -290,6 +290,7 @@
     state character varying(16),
     latest_version character varying(64),
     shortdesc character varying(256),
+    complexity character varying(32),
     category_id integer REFERENCES ir_module_category ON DELETE SET NULL,
     certificate character varying(64),
     description text,

=== modified file 'openerp/modules/db.py'
--- openerp/modules/db.py	2011-09-21 16:21:28 +0000
+++ openerp/modules/db.py	2011-09-30 10:02:38 +0000
@@ -75,13 +75,14 @@
 
         cr.execute('INSERT INTO ir_module_module \
                 (author, website, name, shortdesc, description, \
-                    category_id, state, certificate, web, license) \
-                VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING id', (
+                    category_id, state, certificate, web, license, complexity) \
+                VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING id', (
             info['author'],
             info['website'], i, info['name'],
             info['description'], category_id, state, info['certificate'],
             info['web'],
-            info['license']))
+            info['license'],
+            info['complexity']))
         id = cr.fetchone()[0]
         cr.execute('INSERT INTO ir_model_data \
             (name,model,module, res_id, noupdate) VALUES (%s,%s,%s,%s,%s)', (

=== modified file 'openerp/modules/module.py'
--- openerp/modules/module.py	2011-09-27 16:51:33 +0000
+++ openerp/modules/module.py	2011-09-30 10:02:38 +0000
@@ -249,6 +249,7 @@
             info.setdefault('website', '')
             info.setdefault('name', False)
             info.setdefault('description', '')
+            info.setdefault('complexity', False)
             info['certificate'] = info.get('certificate') or None
             info['web'] = info.get('web') or False
             info['license'] = info.get('license') or 'AGPL-3'

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to