[IMP] REWORK-SERVERSIDE :Now skip wiz not Shown , ON SERVER SIDE

bzr revid: aag@tinyerp.co.in-20110304113327-wviumoee6o7n3n0u
This commit is contained in:
aag (OpenERP) 2011-03-04 17:03:27 +05:30
parent 6a165fd4a4
commit 2f343a6083
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class base_module_configuration(osv.osv_memory):
_name = "base.module.configuration"
def start(self, cr, uid, ids, context=None):
todo_ids = self.pool.get('ir.actions.todo').search(cr, uid, ['|', '|', ('restart','=','always'), ('state', '=', 'open'), '&', ('state', '=', 'skip'), ('restart', '=', 'onskip')])
todo_ids = self.pool.get('ir.actions.todo').search(cr, uid, ['|', '|', ('restart','=','always'), ('state', '=', 'open'), '&', ('state', '=', 'skip'), ('restart', '=', 'on_trigger')])
if not todo_ids:
# When there is no wizard todo it will display message
data_obj = self.pool.get('ir.model.data')

View File

@ -120,7 +120,7 @@ class res_config_configurable(osv.osv_memory):
def start(self, cr, uid, ids, context=None):
ids2 = self.pool.get('ir.actions.todo').search(cr, uid, [], context=context)
for todo in self.pool.get('ir.actions.todo').browse(cr, uid, ids2, context=context):
if (todo.restart=='always') or (todo.restart=='on_trigger' and (todo.state in ('skip','cancel'))):
if (todo.restart=='always'):
todo.write({'state':'open'})
return self.next(cr, uid, ids, context)