[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
This commit is contained in:
Stephane Wirtel 2009-05-19 14:09:41 +02:00
parent 0ffca84a42
commit ca6e1c3451
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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))