[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-08-11 10:18:04 +02:00 committed by Martin Trigaux
parent 4792a669d3
commit 5ece76b717
No known key found for this signature in database
GPG Key ID: 7B0E288E7C0F83A7
1 changed files with 1 additions and 1 deletions

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