summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorVincent Schippefilt <vsc@odoo.com>2018-04-25 16:34:27 +0200
committerVincent Schippefilt <vsc@odoo.com>2018-05-02 14:49:23 +0200
commita01794673776cec3753a4c71ab0503efd199ad7f (patch)
treee739c404b6dbc9553519fa73c35cbb1c66674cbd /addons/web/static/src/js/fields/basic_fields.js
parent7cf68c838ba6c293f92def369c7c941cb0a4de7e (diff)
[FIX] web: allow focus to move to a field monetary
In the chart of account editor, which is an editable list with 2 contiguous monetary field, we could not change the first then move to the second using the TAB key: the focus was not set on the input of the second monetary field, and when it is, that input is destroyed and recreated so the focus was lost Before this fix, the user needed to hit TAB twice to move to the next field. After this fix, the user can navigate between fields monerary with TAB
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
-rw-r--r--addons/web/static/src/js/fields/basic_fields.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js
index b14d71c0b26..b2b7f20f1df 100644
--- a/addons/web/static/src/js/fields/basic_fields.js
+++ b/addons/web/static/src/js/fields/basic_fields.js
@@ -622,7 +622,7 @@ var FieldMonetary = InputField.extend({
this.$el.empty();
// Prepare and add the input
- this._prepareInput().appendTo(this.$el);
+ this._prepareInput(this.$input).appendTo(this.$el);
if (this.currency) {
// Prepare and add the currency symbol