[IMP]: complexity field is added in ir_module_module

bzr revid: han@tinyerp.com-20110706123053-an4rk7vspzrdh8u0
This commit is contained in:
Hardik Ansodariy (OpenERP)
2011-07-06 18:00:53 +05:30
parent ec8af093dc
commit 409cf86673
3 changed files with 9 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',
+5
View File
@@ -188,6 +188,10 @@ 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 difficulties of module. Easy : this module is intuitive and easy to use for everyone. Normal : easy to use for business expert. Expert : this module needs some technical skills".'),
}
_defaults = {
@@ -364,6 +368,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"/>