Jigar Amin (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-799812-jam into
lp:openobject-addons.
Requested reviews:
Bhumika (OpenERP) (sbh-openerp)
Related bugs:
Bug #799812 in OpenERP Addons: "project / task reevaluate"
https://bugs.launchpad.net/openobject-addons/+bug/799812
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-799812-jam/+merge/66272
Changes :
+ Bug #799812: project / task reevaluate
- Wizard should return "ir.actions.act_window_close" instead {} to make
compatible with web client
Kindly review this
Thank You
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-799812-jam/+merge/66272
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-799812-jam.
=== modified file 'project/wizard/project_task_close.py'
--- project/wizard/project_task_close.py 2011-02-22 12:58:05 +0000
+++ project/wizard/project_task_close.py 2011-06-29 10:35:55 +0000
@@ -115,7 +115,7 @@
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()
=== modified file 'project/wizard/project_task_delegate.py'
--- project/wizard/project_task_delegate.py 2011-03-17 17:33:16 +0000
+++ project/wizard/project_task_delegate.py 2011-06-29 10:35:55 +0000
@@ -108,6 +108,6 @@
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()
=== modified file 'project/wizard/project_task_reevaluate.py'
--- project/wizard/project_task_reevaluate.py 2011-01-14 00:11:01 +0000
+++ project/wizard/project_task_reevaluate.py 2011-06-29 10:35:55 +0000
@@ -79,5 +79,5 @@
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()
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp