[IMP] ir.module.module: rename is_application to application

bzr revid: al@openerp.com-20111208222241-n9raoe1jec4llh26
This commit is contained in:
Antony Lesuisse
2011-12-08 23:22:41 +01:00
parent b457bcd153
commit 7e12f46469
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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),
+1 -1
View File
@@ -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,
+3 -3
View File
@@ -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">
+2 -2
View File
@@ -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)', (
+1 -1
View File
@@ -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