Call on_change's even if the field is readonly

This is not in the model part that the readonly must be enforced by only on the
widget side.

issue5637
review26351002
This commit is contained in:
Cédric Krier committed 2016-06-21 13:20:46 +02:00
1 parent a6eb4a81a7
commit a33641f99f
1 file changed
-2
@@ -35,8 +35,6 @@ class Field(object):
self.name = attrs['name']
def sig_changed(self, record):
if self.get_state_attrs(record).get('readonly', False):
return
record.on_change([self.name])
record.on_change_with([self.name])
record.autocomplete_with(self.name)