summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchraf (abz) <abz@odoo.com>2020-10-19 09:35:24 +0000
committerAchraf (abz) <abz@odoo.com>2020-10-20 08:16:09 +0000
commit933ef22ede27280d34ccf4ce2e172c8207ca2074 (patch)
tree889eeb4639bf35cefc236dea5fdcd6cbdd8fa58d
parent7687732a8a2e1afe87272fc31ccd4437ed9a8db1 (diff)
[FIX] board: Custom name not shown
Issue - Install 'Dashboard' - Try to add something to the dashboard via 'Add to my dashboard' - Enter custom name - Click on 'Add' Cause The name of the action was taken instead the input content Solution Take the input content opw-2363000 closes odoo/odoo#60240 Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
-rw-r--r--addons/board/static/src/js/add_to_board_menu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/board/static/src/js/add_to_board_menu.js b/addons/board/static/src/js/add_to_board_menu.js
index 709620df156..42a4a70749b 100644
--- a/addons/board/static/src/js/add_to_board_menu.js
+++ b/addons/board/static/src/js/add_to_board_menu.js
@@ -80,7 +80,7 @@ odoo.define('board.AddToBoardMenu', function (require) {
evalutatedContext.dashboard_merge_domains_contexts = false;
Object.assign(this.state, {
- name: this.env.action.name || "",
+ name: $(".o_input").val() || "",
open: false,
});