diff options
Diffstat (limited to 'addons/web/static/src/js/views/form_common.js')
| -rw-r--r-- | addons/web/static/src/js/views/form_common.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/form_common.js b/addons/web/static/src/js/views/form_common.js index 19737746b4a..4d8a302882d 100644 --- a/addons/web/static/src/js/views/form_common.js +++ b/addons/web/static/src/js/views/form_common.js @@ -630,6 +630,12 @@ 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() {}, }; /** |
