modified doc
authorniv-openerp <nicolas.vanhoren@openerp.com>
Mon, 5 Nov 2012 15:05:40 +0000 (16:05 +0100)
committerniv-openerp <nicolas.vanhoren@openerp.com>
Mon, 5 Nov 2012 15:05:40 +0000 (16:05 +0100)
bzr revid: nicolas.vanhoren@openerp.com-20121105150540-yhcfpoiwffv6kjs3

addons/web/static/src/js/view_form.js

index af38352..956f046 100644 (file)
@@ -2022,7 +2022,7 @@ instance.web.form.FieldInterface = {
     on_translate: function() {},
     /**
         This method is called by the form view before reading on_change values and before saving. It tells
-        the field to save its value before reading it using get_value(). Must return a deferred.
+        the field to save its value before reading it using get_value(). Must return a promise.
     */
     commit_value: function() {},
 };
@@ -2265,7 +2265,7 @@ instance.web.form.FieldChar = instance.web.form.AbstractField.extend(instance.we
     },
     focus: function() {
         this.$('input:first').focus();
-    }
+    },
 });
 
 instance.web.form.FieldID = instance.web.form.FieldChar.extend({