diff options
| author | Christophe Simonis <christophe@tinyerp.com> | 2008-08-20 21:46:06 +0200 |
|---|---|---|
| committer | Christophe Simonis <christophe@tinyerp.com> | 2008-08-20 21:46:06 +0200 |
| commit | c9ae160680ac4dcecef8cffe1835aea72fdaea52 (patch) | |
| tree | 28ef92d6f74fc70ea57666680fa988ce8e79bb19 /bin/addons/base/module/module.py | |
| parent | 9efb19fdd98159f9b7ce348c17f2bf9ca18d8005 (diff) | |
remove unused (and duplicate) method
bzr revid: christophe@tinyerp.com-20080820194606-dro6fgtkwrboa2ng
Diffstat (limited to 'bin/addons/base/module/module.py')
| -rw-r--r-- | bin/addons/base/module/module.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py index de1c6546e52..4772ccbfbf6 100644 --- a/bin/addons/base/module/module.py +++ b/bin/addons/base/module/module.py @@ -266,23 +266,6 @@ class module(osv.osv): raise orm.except_orm(_('Error'), _('You try to remove a module that is installed or will be installed')) return super(module, self).unlink(cr, uid, ids, context=context) - - def state_change(self, cr, uid, ids, newstate, context={}, level=50): - if level<1: - raise Exception, _('Recursion error in modules dependencies !') - demo = True - for module in self.browse(cr, uid, ids): - mdemo = True - for dep in module.dependencies_id: - ids2 = self.search(cr, uid, [('name','=',dep.name)]) - mdemo = self.state_change(cr, uid, ids2, newstate, context, level-1,)\ - and mdemo - if not module.dependencies_id: - mdemo = module.demo - if module.state == 'uninstalled': - self.write(cr, uid, [module.id], {'state': newstate, 'demo':mdemo}) - demo = demo and mdemo - return demo def state_update(self, cr, uid, ids, newstate, states_to_update, context={}, level=50): if level<1: |
