From d67658c043c8b9da3dd04ef73ade6685410c2f8b Mon Sep 17 00:00:00 2001 From: Swapnesh Shah Date: Sun, 14 Oct 2018 20:34:43 +0000 Subject: [FIX] mail,web: link attachments & messages The information of the active model and record was not given in the context Records created from the Manage Messages and Manage Attachements in the debug menu were not linked to the current records Add context in test too closes odoo/odoo#27766 --- addons/web/static/src/js/tools/debug_manager.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addons/web/static/src/js/tools') diff --git a/addons/web/static/src/js/tools/debug_manager.js b/addons/web/static/src/js/tools/debug_manager.js index 391d8613aac..e4134d18afc 100644 --- a/addons/web/static/src/js/tools/debug_manager.js +++ b/addons/web/static/src/js/tools/debug_manager.js @@ -365,6 +365,10 @@ DebugManager.include({ views: [[false, 'list'], [false, 'form']], type: 'ir.actions.act_window', domain: [['res_model', '=', this._action.res_model], ['res_id', '=', selectedIDs[0]]], + context: { + default_res_model: this._action.res_model, + default_res_id: selectedIDs[0], + }, }); }, get_metadata: function() { -- cgit v1.2.3