[MERGE] fix bug lp:799812 by jam
bzr revid: tfr@openerp.com-20110630084612-nooehdpfnkelwxqi
This commit is contained in:
commit
05c283a6ea
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue