[FIX] project: remove redundant context declaration

Declaring the keyword argument `context` in an API v7 `orm.browse_record` can
lead to mixed API v7/v8 inheritance bugs (`context` will be treated as a
function parameter instead of being injected in `self.env.context`). As the
context is already propagated in line 953, we can safely remove it from line
971.

Closes #13115
This commit is contained in:
Cristian Moncho
2016-12-09 14:37:21 +01:00
committed by Martin Trigaux
parent 4792a669d3
commit 5ece76b717
+1 -1
View File
@@ -968,7 +968,7 @@ class task(osv.osv):
'remaining_hours': delegate_data['planned_hours_me'],
'planned_hours': delegate_data['planned_hours_me'] + (task.effective_hours or 0.0),
'name': newname,
}, context=context)
})
delegated_tasks[task.id] = delegated_task_id
return delegated_tasks