[FIX] remove duplicate and buggy method
bzr revid: christophe@tinyerp.com-20081121180110-0nsxpavsxpz8n23l
This commit is contained in:
@@ -573,17 +573,6 @@ class module(osv.osv):
|
||||
categs = categs[1:]
|
||||
self.write(cr, uid, [id], {'category_id': p_id})
|
||||
|
||||
def action_install(self,cr,uid,ids,context=None):
|
||||
for module in self.browse(cr, uid, ids, context):
|
||||
if module.state <> 'uninstalled':
|
||||
continue
|
||||
self.write(cr , uid, [module.id] ,{'state' : 'to install'})
|
||||
self.download(cr, uid, [module.id], context=context)
|
||||
cr.execute("select m.id as id from ir_module_module_dependency d inner join ir_module_module m on (m.name=d.name) where d.module_id=%d and m.state='uninstalled'",(module.id,))
|
||||
dep_ids = map(lambda x:x[0],cr.fetchall())
|
||||
if len(dep_ids):
|
||||
self.action_install(cr,uid,dep_ids,context=context)
|
||||
|
||||
def update_translations(self, cr, uid, ids, filter_lang=None):
|
||||
logger = netsvc.Logger()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user