[MERGE] add field 'complexity' in ir.module.module

bzr revid: rco@openerp.com-20110708095942-ghzdubw16iji4v34
This commit is contained in:
Raphael Collet
2011-07-08 11:59:42 +02:00
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -25,6 +25,7 @@
'name': 'Base',
'version': '1.3',
'category': 'Generic Modules/Base',
'complexity': "easy",
'description': """The kernel of OpenERP, needed for all installation.""",
'author': 'OpenERP SA',
'maintainer': 'OpenERP SA',
+4
View File
@@ -197,6 +197,9 @@ 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),
'complexity': fields.selection([('easy','Easy'), ('normal','Normal'), ('expert','Expert')],
string='Complexity', readonly=True,
help='Level of difficulty of module. Easy: intuitive and easy to use for everyone. Normal: easy to use for business experts. Expert: requires technical skills.'),
}
_defaults = {
@@ -376,6 +379,7 @@ class module(osv.osv):
'license': terp.get('license', 'AGPL-3'),
'certificate': terp.get('certificate') or False,
'web': terp.get('web') or False,
'complexity': terp.get('complexity', ''),
}
# update the list of available packages
@@ -46,6 +46,7 @@
<filter icon="terp-camera_test" string="Certified" domain="[('certificate','&lt;&gt;', False)]"/>
<separator orientation="vertical"/>
<field name="name"/>
<field name="complexity"/>
<field name="description"/>
<field name="dependencies_id"/>
<field name="state"/>
@@ -90,6 +91,7 @@
<field name="certificate" />
<field colspan="4" name="shortdesc" select="2"/>
<field name="category_id"/>
<field name="complexity"/>
<field name="demo" readonly="1"/>
<notebook colspan="4">
<page string="Module">
@@ -149,6 +151,7 @@
<field name="name"/>
<field name="category_id"/>
<field name="shortdesc"/>
<field name="complexity"/>
<field name="author"/>
<field name="installed_version"/>
<field name="latest_version"/>