[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:
parent
4792a669d3
commit
5ece76b717
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue