[IMP] project: don't provide default value to dict.get when unnecessary

bzr revid: xmo@openerp.com-20111014115050-xakw40bzxqlnyr1p
This commit is contained in:
Xavier Morel 2011-10-14 13:50:50 +02:00
parent dd058bea47
commit e7a367b80a
1 changed files with 2 additions and 2 deletions

View File

@ -74,10 +74,10 @@ class project_task_reevaluate(osv.osv_memory):
context = {}
data = self.browse(cr, uid, ids, context=context)[0]
task_pool = self.pool.get('project.task')
task_id = context.get('active_id', False)
task_id = context.get('active_id')
if task_id:
task_pool.write(cr, uid, task_id, {'remaining_hours': data.remaining_hours})
if context.get('button_reactivate', False):
if context.get('button_reactivate'):
task_pool.do_reopen(cr, uid, [task_id], context=context)
return {'type': 'ir.actions.act_window_close'}
project_task_reevaluate()