Always return a promise from _update_completion

Closes #13280
This commit is contained in:
Cédric Krier
2024-05-25 20:40:56 +02:00
parent 9e759e9604
commit 91e95c52b5
+5 -5
View File
@@ -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);