summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/tools/debug_manager.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/js/tools/debug_manager.js')
-rw-r--r--addons/mail/static/src/js/tools/debug_manager.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/tools/debug_manager.js b/addons/mail/static/src/js/tools/debug_manager.js
index 4c768e8bb2d..452a062806f 100644
--- a/addons/mail/static/src/js/tools/debug_manager.js
+++ b/addons/mail/static/src/js/tools/debug_manager.js
@@ -23,6 +23,10 @@ DebugManager.include({
views: [[false, 'list'], [false, 'form']],
type: 'ir.actions.act_window',
domain: [['res_id', '=', selectedIDs[0]], ['model', '=', this._controller.modelName]],
+ context: {
+ default_res_model: this._controller.modelName,
+ default_res_id: selectedIDs[0],
+ },
});
},
});