diff options
| author | Mohammed Shekha <msh@odoo.com> | 2021-03-24 06:22:55 +0000 |
|---|---|---|
| committer | Mohammed Shekha <msh@odoo.com> | 2021-03-24 06:22:55 +0000 |
| commit | 9d6ef842902e9e192924fa0caba99514e1543352 (patch) | |
| tree | 802d53ffeeea47ae1665e3cd6a7e1793d0065a0c /addons/web/static/src/js/fields | |
| parent | 646f51368a45869a18ada897703b7eaf1c5217ca (diff) | |
[FIX] web: disale autofill on input elements
with this commit we disables autofill of autocomplete by setting
autocomplete=off, this was previously done in commit: 64293fbdb0a247f689c1b0b0c580d9ce577af510
but it was not working because we were setting autocomplete=none
it seems that none does not work all the time.
task-2462676
closes odoo/odoo#68271
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 2 |
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 13148e62019..475610b94f5 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -274,7 +274,7 @@ var InputField = DebouncedField.extend({ inputAttrs = _.extend(inputAttrs, { type: 'password', autocomplete: this.attrs.autocomplete || 'new-password' }); inputVal = this.value || ''; } else { - inputAttrs = _.extend(inputAttrs, { type: 'text', autocomplete: this.attrs.autocomplete || 'none'}); + inputAttrs = _.extend(inputAttrs, { type: 'text', autocomplete: this.attrs.autocomplete || 'off'}); inputVal = this._formatValue(this.value); } |
