summaryrefslogtreecommitdiff
path: root/odoo/addons
diff options
context:
space:
mode:
authorDhruv Patel <dhp@odoo.com>2020-06-03 10:35:33 +0000
committerJulien Mougenot <jum@odoo.com>2020-06-10 13:08:33 +0000
commiteacbec1e03b1f25e71875fb7caed646a53af67ed (patch)
tree0945bb57b0c438bc8af7ee3b21f1cc49567bf28f /odoo/addons
parenta392da16015c69161814e83f1cde5ddf40782505 (diff)
[IMP] web,*: highlight quick create feature to user
Generally, Users are not necessarily aware that they can quick create a most records by simply typing in their name+enter in the many2xxx field input. The exact purpose of this commit is to make sure the user discovers the quick create feature of our many2xxx fields. For that, when the input is empty, display 'Start typing to create a record...' at the bottom of the dropdown when can_create is set and no_create_edit option not set. So the user can easily understand that by typing and pressing enter will create the new record. Also "Search and Create" options in the dropdown only been shown to the user when it type anything in the input box as the same case in the "Create" option. Task : 2266557 Co-authored-by: Mohammed Shekha <msh@openerp.com> Co-authored-by: Julien Mougenot <jum@odoo.com>
Diffstat (limited to 'odoo/addons')
-rw-r--r--odoo/addons/test_new_api/static/tests/tours/x2many.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/odoo/addons/test_new_api/static/tests/tours/x2many.js b/odoo/addons/test_new_api/static/tests/tours/x2many.js
index 1eeb10e6977..a8f207fff6d 100644
--- a/odoo/addons/test_new_api/static/tests/tours/x2many.js
+++ b/odoo/addons/test_new_api/static/tests/tours/x2many.js
@@ -26,6 +26,10 @@ odoo.define('web.test.x2many', function (require) {
trigger: 'tr:contains(Moderator) .o_input_dropdown > input',
run: 'click',
}, {
+ content: "insert value in moderator",
+ trigger: 'input.ui-autocomplete-input',
+ run: 'text test',
+ }, {
content: "click on 'Create and Edit...'",
trigger: '.ui-autocomplete .o_m2o_dropdown_option:last',
}, {