[IMP] ir.module.module: rename is_application to application
bzr revid: al@openerp.com-20111208222241-n9raoe1jec4llh26
This commit is contained in:
@@ -295,7 +295,7 @@ CREATE TABLE ir_module_module (
|
||||
category_id integer REFERENCES ir_module_category ON DELETE SET NULL,
|
||||
certificate character varying(64),
|
||||
description text,
|
||||
is_application boolean default False,
|
||||
application boolean default False,
|
||||
demo boolean default False,
|
||||
web boolean DEFAULT FALSE,
|
||||
license character varying(32),
|
||||
|
||||
@@ -215,7 +215,7 @@ class module(osv.osv):
|
||||
'views_by_module': fields.function(_get_views, method=True, string='Views', type='text', multi="meta", store=True),
|
||||
'certificate' : fields.char('Quality Certificate', size=64, readonly=True),
|
||||
'web': fields.boolean('Has a web component', readonly=True),
|
||||
'is_application': fields.boolean('Is a Core Application', readonly=True),
|
||||
'application': fields.boolean('Application', readonly=True),
|
||||
'icon': fields.char('Icon URL', size=128),
|
||||
'complexity': fields.selection([('easy','Easy'), ('normal','Normal'), ('expert','Expert')],
|
||||
string='Complexity', readonly=True,
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
<field name="arch" type="xml">
|
||||
<search string="Search modules">
|
||||
<group col='10' colspan='4'>
|
||||
<filter icon="terp-check" string="Main Apps" domain="[('is_application', '=', 1)]"/>
|
||||
<filter icon="terp-check" string="Extra" domain="[('is_application', '=', 0)]"/>
|
||||
<filter icon="terp-check" string="Apps" domain="[('application', '=', 1)]"/>
|
||||
<filter icon="terp-check" string="Extra" domain="[('application', '=', 0)]"/>
|
||||
|
||||
<separator orientation="vertical"/>
|
||||
<filter icon="terp-check" string="Installed" domain="[('state', 'in', ['installed', 'to upgrade', 'to remove'])]"/>
|
||||
@@ -121,7 +121,7 @@
|
||||
<field name="complexity"/>
|
||||
<field name="demo"/>
|
||||
<field name="icon"/>
|
||||
<field name="is_application"/>
|
||||
<field name="application"/>
|
||||
</group>
|
||||
<notebook colspan="4">
|
||||
<page string="Module">
|
||||
|
||||
@@ -75,14 +75,14 @@ def initialize(cr):
|
||||
|
||||
cr.execute('INSERT INTO ir_module_module \
|
||||
(author, website, name, shortdesc, description, \
|
||||
category_id, state, certificate, web, license, complexity, is_application, icon) \
|
||||
category_id, state, certificate, web, license, complexity, application, icon) \
|
||||
VALUES (%s, %s, %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['complexity'], info['is_application'], info['icon']))
|
||||
info['complexity'], info['application'], info['icon']))
|
||||
id = cr.fetchone()[0]
|
||||
cr.execute('INSERT INTO ir_model_data \
|
||||
(name,model,module, res_id, noupdate) VALUES (%s,%s,%s,%s,%s)', (
|
||||
|
||||
@@ -250,7 +250,7 @@ def load_information_from_description_file(module):
|
||||
info.setdefault('name', False)
|
||||
info.setdefault('description', '')
|
||||
info.setdefault('complexity', 'normal')
|
||||
info.setdefault('is_application', False)
|
||||
info.setdefault('application', False)
|
||||
info.setdefault('icon', '')
|
||||
info['certificate'] = info.get('certificate') or None
|
||||
info['web'] = info.get('web') or False
|
||||
|
||||
Reference in New Issue
Block a user