diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 46537a2fe4e..5767ffe5489 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -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']) {