From ca6e1c3451e3a2aed75f85039834d84dbbb749d3 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Tue, 19 May 2009 14:09:41 +0200 Subject: [PATCH] [FIX] Add the certificate field in the ir_module_module table [FIX] Insert the quality certificate in the description of the module (in ir_module_module) bzr revid: stephane@tinyerp.com-20090519120941-bp1vpj5f2dr0uh36 --- bin/addons/base/base.sql | 1 + bin/tools/misc.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/addons/base/base.sql b/bin/addons/base/base.sql index d38fc77b34c..91d5cc46561 100644 --- a/bin/addons/base/base.sql +++ b/bin/addons/base/base.sql @@ -295,6 +295,7 @@ CREATE TABLE ir_module_module ( latest_version character varying(64), shortdesc character varying(256), category_id integer REFERENCES ir_module_category ON DELETE SET NULL, + certificate character varying(64), description text, demo boolean default False, primary key(id) diff --git a/bin/tools/misc.py b/bin/tools/misc.py index 8a348d3af0e..af3b74aa95d 100644 --- a/bin/tools/misc.py +++ b/bin/tools/misc.py @@ -94,11 +94,11 @@ def init_db(cr): id = cr.fetchone()[0] cr.execute('insert into ir_module_module \ (id, author, website, name, shortdesc, description, \ - category_id, state) \ - values (%s, %s, %s, %s, %s, %s, %s, %s)', ( + category_id, state, certificate) \ + values (%s, %s, %s, %s, %s, %s, %s, %s, %s)', ( id, info.get('author', ''), info.get('website', ''), i, info.get('name', False), - info.get('description', ''), p_id, state)) + info.get('description', ''), p_id, state, info.get('certificate'))) cr.execute('insert into ir_model_data \ (name,model,module, res_id) values (%s,%s,%s,%s)', ( 'module_meta_information', 'ir.module.module', i, id))