[IMP] added commit_value()

bzr revid: nicolas.vanhoren@openerp.com-20121030155313-g2cx14h4rl6zks6z
This commit is contained in:
niv-openerp
2012-10-30 16:53:13 +01:00
parent 8597e63c29
commit 8a12c46307
+9 -1
View File
@@ -1991,6 +1991,11 @@ instance.web.form.FieldInterface = {
* Called when the translate button is clicked.
*/
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.
*/
commit_value: function() {},
};
/**
@@ -2134,7 +2139,10 @@ instance.web.form.AbstractField = instance.web.form.FormWidget.extend(instance.w
}
this.$el.attr('style', style);
this.$el.css('minHeight', height);
}
},
commit_value: function() {
return $.when();
},
});
/**