summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/form_common.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2016-02-25 14:02:20 +0100
committerGéry Debongnie <ged@odoo.com>2016-03-14 10:14:16 +0100
commitfeeac2a4f1cd777770dd2b42534904ac71f23e46 (patch)
tree60a116265f5e51f3ec6790001ade5a5d6b3f440a /addons/web/static/src/js/views/form_common.js
parentbbbf3db581b5cf883e10fa9cf9e2b1727f725669 (diff)
[FIX] web: various small issues in form view onchange/one2many
- Issue: Edit sale.order form view, add new line, change product who have taxes and click quickly on save (with slow network) => error message. Because some deferreds are lost. - reduce number of reads and onchange for x2m widgets - remove before_save method and use commit_value (the issue was that if the before_save and the change trigger an onchange, the onchange deferred is not checked before saving the content.
Diffstat (limited to 'addons/web/static/src/js/views/form_common.js')
-rw-r--r--addons/web/static/src/js/views/form_common.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/addons/web/static/src/js/views/form_common.js b/addons/web/static/src/js/views/form_common.js
index d9aba2ec71a..a9ee9d4a1d7 100644
--- a/addons/web/static/src/js/views/form_common.js
+++ b/addons/web/static/src/js/views/form_common.js
@@ -632,12 +632,6 @@ var FieldInterface = {
the field to save its value before reading it using get_value(). Must return a promise.
*/
commit_value: function() {},
- /*
- The form view call before_save before save data and if before_save return a deferred,
- the form view wait that all deferred are resolve or fail.
- If the deferred is rejected, the field is invalidate
- */
- before_save: function() {},
};
/**