details:   https://code.tryton.org/tryton/commit/e6057b3f4385
branch:    7.8
user:      Nicolas Évrard <[email protected]>
date:      Thu Sep 10 22:12:59 2026 +0200
description:
        Use the selection from the update_selection call in Selection editable 
columns

        Since 917de1b3e124 the selection is not stored on the selection_mixins 
we must
        thus use the one coming from the callback call

        Closes #15087
        (grafted from e80a99079b44ce2d1c22865bd919fef6bfc8ce24)
diffstat:

 sao/src/view/tree.js |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 25fabdcff937 -r e6057b3f4385 sao/src/view/tree.js
--- a/sao/src/view/tree.js      Sun Sep 13 13:57:29 2026 +0200
+++ b/sao/src/view/tree.js      Thu Sep 10 22:12:59 2026 +0200
@@ -2861,10 +2861,10 @@
                 var text_value = this.get_textual_value(record);
                 cell.text(text_value).attr('title', text_value);
             } else {
-                this.update_selection(record, () => {
+                this.update_selection(record, (selection, help) => {
                     var value = this.field.get(record);
                     var prm, text, found = false;
-                    for (const option of this.selection) {
+                    for (const option of selection) {
                         if (option[0] === value) {
                             found = true;
                             text = option[1];

Reply via email to