[BUG/FIX] project : return action close from web compability

lp bug: https://launchpad.net/bugs/799812 fixed

bzr revid: jam@tinyerp.com-20110629103146-pvyo9isbq8hfjszv
This commit is contained in:
Jigar Amin 2011-06-29 16:01:46 +05:30
parent 9decec9915
commit 55f5d283d3
3 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ class project_task_close(osv.osv_memory):
mail_id = tools.email_send(from_adr, to_adr, subject, tools.ustr(body), email_bcc=[from_adr])
if not mail_id:
raise osv.except_osv(_('Error'), _("Couldn't send mail! Check the email ids and smtp configuration settings"))
return {}
return {'type': 'ir.actions.act_window_close'}
project_task_close()

View File

@ -108,6 +108,6 @@ class project_task_delegate(osv.osv_memory):
delegate_data['user_id'] = delegate_data['user_id'][0]
delegate_data['name'] = tools.ustr(delegate_data['name'])
task_pool.do_delegate(cr, uid, task_id, delegate_data, context=context)
return {}
return {'type': 'ir.actions.act_window_close'}
project_task_delegate()

View File

@ -79,5 +79,5 @@ class project_task_reevaluate(osv.osv_memory):
task_pool.write(cr, uid, task_id, {'remaining_hours': data.remaining_hours})
if context.get('button_reactivate', False):
task_pool.do_reopen(cr, uid, [task_id], context=context)
return {}
return {'type': 'ir.actions.act_window_close'}
project_task_reevaluate()