From 91e95c52b50fbe0908986dd371f64f06aa2bb855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 25 May 2024 20:40:56 +0200 Subject: [PATCH] Always return a promise from _update_completion Closes #13280 --- sao/src/view/form.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sao/src/view/form.js b/sao/src/view/form.js index f1ddccb11c..fe73be8d84 100644 --- a/sao/src/view/form.js +++ b/sao/src/view/form.js @@ -2961,7 +2961,7 @@ function eval_pyson(value){ _update_completion: function(text) { var record = this.record; if (!record) { - return; + return jQuery.when(); } var field = this.field; var value = field.get(record); @@ -3844,7 +3844,7 @@ function eval_pyson(value){ }, _update_completion: function(text) { if (!this.record) { - return; + return jQuery.when(); } var model = this.attributes.relation; var domain = this.field.get_domain(this.record); @@ -4230,7 +4230,7 @@ function eval_pyson(value){ }, _update_completion: function(text) { if (!this.record) { - return; + return jQuery.when(); } var model = this.attributes.relation; var domain = this.field.get_domain(this.record); @@ -5196,10 +5196,10 @@ function eval_pyson(value){ }, _update_completion: function(text) { if (this.wid_text.prop('disabled')) { - return; + return jQuery.when(); } if (!this.record) { - return; + return jQuery.when(); } return Sao.common.update_completion( this.wid_text, this.record, this.field, this.schema_model);