summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-07-14 13:47:47 +0200
committerGéry Debongnie <ged@odoo.com>2017-07-14 14:47:11 +0200
commit04c3b99cb7cc1d8b1e6e5590e5e6866b4386f6dd (patch)
treea8ca6e148bdfb1cbc6d9cc2edae303365cbc1582 /addons/web/static/src/js/fields/basic_fields.js
parent4ca3d9cadf9607c95880bb5222041bced7b13ec0 (diff)
[FIX] web: disable debounce functionality
With the new views, we introduced a system where some fields could notify immediately the rest of the system that they have been changed. It is really cool, it allows real time edition (with onchanges). However, this was a little too much. In some cases (an onchange that returns a warning), it was counterproductive. So, we decided to simply remove the feature. This commit only make sure that it does not happen, and we will do a deeper pass later to make sure that no useless code is left behind. Note that this means that we can reintroduce the functionality really easily later, eventually protected by an attribute.
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 1868a29a237..ecf8661a384 100644
--- a/addons/web/static/src/js/fields/basic_fields.js
+++ b/addons/web/static/src/js/fields/basic_fields.js
@@ -65,7 +65,7 @@ var DebouncedField = AbstractField.extend({
* it could be a good idea to debounce the changes. In that case, this is
* the suggested value.
*/
- DEBOUNCE: 1000,
+ DEBOUNCE: 1000000000,
/**
* Override init to debounce the field "_doAction" method (by creating a new