[REVERT] 8b41906: disabled all on_change on new record form
This reverts commit 8b41906bf8
.
This commit is contained in:
parent
13fb4f2e62
commit
bcd9456db5
|
@ -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']) {
|
||||
|
|
Loading…
Reference in New Issue