Before this commit, when we open activity view and click on schedule activity >> select a record there is a trackback due to the invalid default_res_id passed in context. So in this commit, fixes the issue by passing the valid res_id in instead of object with id and display_name. task-2927335 closes odoo/odoo#96999 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>