From 8f35023da70a5599b7ee6a80969eefdc8fd5ed48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 27 Jul 2026 10:59:31 +0200 Subject: [PATCH] Clear the value of input select once data has been read The display does not clear the input if the current record is changed so we must ensure that the input is always empty once file has been selected. Closes #14482 (grafted from 759ffbf53e83eb67855b929aaf0274826e1b1fb5) --HG-- branch : 7.0 --- sao/src/view/form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sao/src/view/form.js b/sao/src/view/form.js index ef4c512e83..96f5bb984b 100644 --- a/sao/src/view/form.js +++ b/sao/src/view/form.js @@ -4252,11 +4252,12 @@ function eval_pyson(value){ field = this.field, filename_field = this.filename_field; - Sao.common.get_input_data(this.input_select, function(data, filename) { + Sao.common.get_input_data(this.input_select, (data, filename) => { field.set_client(record, data); if (filename_field) { filename_field.set_client(record, filename); } + this.input_select.val(undefined); }, !field.get_size); }, open: function() {