[REVERT] 8b41906: disabled all on_change on new record form

This reverts commit 8b41906bf8.
This commit is contained in:
Olivier Dony 2014-07-25 12:43:16 +02:00
parent 13fb4f2e62
commit bcd9456db5
1 changed files with 2 additions and 4 deletions

View File

@ -504,10 +504,8 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
// In case of a o2m virtual id, we should pass an empty ids list
ids.push(self.datarecord.id);
}
if (ids.length) {
def = self.alive(new instance.web.Model(self.dataset.model).call(
"onchange", [ids, values, trigger_field_name, onchange_specs, context]));
}
def = self.alive(new instance.web.Model(self.dataset.model).call(
"onchange", [ids, values, trigger_field_name, onchange_specs, context]));
}
return def.then(function(response) {
if (widget && widget.field['change_default']) {