level=50 is too low for some projects

bzr revid: olt@tinyerp.com-20081208075131-qnxld3nfeap0sg7j
This commit is contained in:
Olivier Laurent 2008-12-08 08:51:31 +01:00
parent 04b6432165
commit b08432d356
1 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ import netsvc
from tools.parse_version import parse_version
class module_repository(osv.osv):
_name = "ir.module.repository"
_description = "Module Repository"
@ -208,7 +209,7 @@ class module(osv.osv):
_('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_update(self, cr, uid, ids, newstate, states_to_update, context={}, level=50):
def state_update(self, cr, uid, ids, newstate, states_to_update, context={}, level=100):
if level<1:
raise orm.except_orm(_('Error'), _('Recursion error in modules dependencies !'))
demo = False