[FIX] some catgories and complexity
bzr revid: al@openerp.com-20111004231832-8hx5233nm031nuhs
This commit is contained in:
parent
0815eff444
commit
3fe0d08772
|
@ -22,8 +22,7 @@
|
||||||
{
|
{
|
||||||
'name': 'Action Rule',
|
'name': 'Action Rule',
|
||||||
'version': '1.0',
|
'version': '1.0',
|
||||||
'category': 'Base',
|
'category': 'Tools',
|
||||||
'complexity': "expert",
|
|
||||||
'description': """
|
'description': """
|
||||||
This module allows to implement action rules for any object.
|
This module allows to implement action rules for any object.
|
||||||
============================================================
|
============================================================
|
||||||
|
|
|
@ -43,6 +43,8 @@ DEFAULT_MODULES = {
|
||||||
'Marketing' : ['marketing',],
|
'Marketing' : ['marketing',],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HIDDEN_CATEGORIES = ('Tools', 'System', 'Localization', 'Link', 'Uncategorized')
|
||||||
|
|
||||||
class base_setup_installer(osv.osv_memory):
|
class base_setup_installer(osv.osv_memory):
|
||||||
_name = 'base.setup.installer'
|
_name = 'base.setup.installer'
|
||||||
|
|
||||||
|
@ -61,7 +63,7 @@ class base_setup_installer(osv.osv_memory):
|
||||||
fields = {}
|
fields = {}
|
||||||
category_proxy = self.pool.get('ir.module.category')
|
category_proxy = self.pool.get('ir.module.category')
|
||||||
domain = [('parent_id', '=', False),
|
domain = [('parent_id', '=', False),
|
||||||
('name', 'not in', ('Localization', 'Others', 'Tools', 'Base', 'Link'))]
|
('name', 'not in', HIDDEN_CATEGORIES )]
|
||||||
category_ids = category_proxy.search(cr, uid, domain, context=context)
|
category_ids = category_proxy.search(cr, uid, domain, context=context)
|
||||||
for category in category_proxy.browse(cr, uid, category_ids, context=context):
|
for category in category_proxy.browse(cr, uid, category_ids, context=context):
|
||||||
category_name = 'category_%d' % (category.id,)
|
category_name = 'category_%d' % (category.id,)
|
||||||
|
@ -119,7 +121,7 @@ class base_setup_installer(osv.osv_memory):
|
||||||
|
|
||||||
module_category_proxy = self.pool.get('ir.module.category')
|
module_category_proxy = self.pool.get('ir.module.category')
|
||||||
domain = [('parent_id', '=', False),
|
domain = [('parent_id', '=', False),
|
||||||
('name', 'not in', ('Localization', 'Others', 'Tools', 'Base', 'Link'))]
|
('name', 'not in', HIDDEN_CATEGORIES)]
|
||||||
module_category_ids = module_category_proxy.search(cr, uid, domain, context=context, order='sequence asc')
|
module_category_ids = module_category_proxy.search(cr, uid, domain, context=context, order='sequence asc')
|
||||||
|
|
||||||
arch = ['<form string="%s">' % _('Automatic Base Setup')]
|
arch = ['<form string="%s">' % _('Automatic Base Setup')]
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
{
|
{
|
||||||
'name': 'Google user',
|
'name': 'Google user',
|
||||||
'version': '1.0',
|
'version': '1.0',
|
||||||
'category': 'Others',
|
'category': 'Tools',
|
||||||
'description': """The module adds google user in res user""",
|
'description': """The module adds google user in res user""",
|
||||||
'author': 'OpenERP SA',
|
'author': 'OpenERP SA',
|
||||||
'website': 'http://www.openerp.com',
|
'website': 'http://www.openerp.com',
|
||||||
'depends': ['base'],
|
'depends': ['base'],
|
||||||
|
|
|
@ -23,8 +23,7 @@
|
||||||
{
|
{
|
||||||
'name': 'Google Map',
|
'name': 'Google Map',
|
||||||
'version': '1.0',
|
'version': '1.0',
|
||||||
'category': 'Others',
|
'category': 'Tools',
|
||||||
'complexity': "easy",
|
|
||||||
'description': """
|
'description': """
|
||||||
The module adds Google Map field in partner address.
|
The module adds Google Map field in partner address.
|
||||||
====================================================
|
====================================================
|
||||||
|
|
Loading…
Reference in New Issue