From bcd9456db594496cbf0f539f96c7bb09717b549c Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 25 Jul 2014 12:43:16 +0200 Subject: [PATCH] [REVERT] 8b41906: disabled all on_change on new record form This reverts commit 8b41906bf8a22e3f00d3ea334f89b7f1aec27442. --- addons/web/static/src/js/view_form.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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']) {