details:   https://code.tryton.org/tryton/commit/7c6143773e37
branch:    7.4
user:      Nicolas Évrard <[email protected]>
date:      Fri Oct 31 18:02:26 2025 +0100
description:
        Return the data name as the action key when launching the graph_open 
action

        The ids of each record is in fact indexed by the name of the label in a 
pie
        chart

        Closes #14340
        (grafted from b69cd826844dd5625eafd75e15d06db5b1300427)
diffstat:

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

diffs (13 lines):

diff -r d08ad3e0675f -r 7c6143773e37 sao/src/view/graph.js
--- a/sao/src/view/graph.js     Thu Oct 30 01:11:22 2025 +0100
+++ b/sao/src/view/graph.js     Fri Oct 31 18:02:26 2025 +0100
@@ -362,7 +362,8 @@
             Sao.View.Graph.Pie._super._add_id.call(this, key, id);
         },
         _action_key: function(data) {
-            return data.id;
+            // data.name is the label used for the x axis
+            return data.name;
         }
     });
 

Reply via email to