Add readonly check in Field.changed

This commit is contained in:
Cédric Krier committed 2015-05-15 13:15:33 +02:00
1 parent f6149f4483
commit 3f6ff2ad03
1 file changed
+3 -1
+3 -1
View File
@@ -1232,7 +1232,9 @@
},
changed: function(record) {
var prms = [];
// TODO check readonly
if (this.get_state_attrs(record).readonly) {
return jQuery.when();
}
prms.push(record.on_change([this.name]));
prms.push(record.on_change_with([this.name]));
prms.push(record.autocomplete_with(this.name));