[IMP] ir.module.module: rename 'core' to 'is_application'
authorChristophe Simonis <chs@openerp.com>
Thu, 8 Dec 2011 14:51:01 +0000 (15:51 +0100)
committerChristophe Simonis <chs@openerp.com>
Thu, 8 Dec 2011 14:51:01 +0000 (15:51 +0100)
bzr revid: chs@openerp.com-20111208145101-oth2k8xuymze7y2l

openerp/addons/base/base.sql
openerp/addons/base/module/module.py
openerp/addons/base/module/module_view.xml
openerp/modules/db.py
openerp/modules/module.py

index 6f3a8ed..a93ea4e 100644 (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,
-    core boolean default False,
+    is_application boolean default False,
     demo boolean default False,
     web boolean DEFAULT FALSE,
     license character varying(32),
index fd69c07..68df983 100644 (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),
-        'core': fields.boolean('Is a Core Application', readonly=True),
+        'is_application': fields.boolean('Is a Core Application', readonly=True),
         'icon': fields.char('Icon URL', size=128),
         'complexity': fields.selection([('easy','Easy'), ('normal','Normal'), ('expert','Expert')],
             string='Complexity', readonly=True,
index ff4dee3..2c9f384 100644 (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="[('core', '=', 1)]"/>
-                        <filter icon="terp-check" string="Extra" domain="[('core', '=', 0)]"/>
+                        <filter icon="terp-check" string="Main Apps" domain="[('is_application', '=', 1)]"/>
+                        <filter icon="terp-check" string="Extra" domain="[('is_application', '=', 0)]"/>
 
                         <separator orientation="vertical"/>
                         <filter icon="terp-check" string="Installed" domain="[('state', 'in', ['installed', 'to upgrade', 'to remove'])]"/>
                         <field name="complexity"/>
                         <field name="demo"/>
                         <field name="icon"/>
-                        <field name="core"/>
+                        <field name="is_application"/>
                     </group>
                     <notebook colspan="4">
                         <page string="Module">
index 4f80327..c3118e4 100644 (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, core, icon) \
+                    category_id, state, certificate, web, license, complexity, is_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['core'], info['icon']))
+            info['complexity'], info['is_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)', (
index 09fcb2e..711d05a 100644 (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('core', False)
+            info.setdefault('is_application', False)
             info.setdefault('icon', '')
             info['certificate'] = info.get('certificate') or None
             info['web'] = info.get('web') or False