diff options
| author | len-odoo <len@odoo.com> | 2018-08-03 16:09:08 +0200 |
|---|---|---|
| committer | len-odoo <35492570+len-odoo@users.noreply.github.com> | 2018-09-03 12:09:56 +0200 |
| commit | b95b4035e4d05b1ac6fb0b1d9b0c3567b07344d2 (patch) | |
| tree | ae5be7a7650427c0bef54d839b07db18354dd284 /addons/web_editor/static/lib/summernote/src/js | |
| parent | 122f06b86e0b9ea2121308caf4c580f7f5364ced (diff) | |
[FIX] web: tab selects first many2one entry without triggering spurious create
Suppose you select a customer for a sale order.
You type the beginning of his name "think", and a name_search is triggered
which finds matching results, with first result "Think Big Systems".
There are three ways to select it: click, enter or tab.
Now there can be a warning set on this customer
("Bad client, only accept cash", or "good client, offer discount").
In that case, clicking on tab would trigger the onchange displaying the warning,
but it would also set floating to true, which means a dialog to create client
"think" would appear.
This happens if the onchange is delayed, and thus the call to reset the floating
state is triggered only after the focusout completed, instead of before.
Coauthored with @aab-odoo
opw 1866619
opw 1874475
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src/js')
0 files changed, 0 insertions, 0 deletions
