details: https://code.tryton.org/tryton/commit/b69cd826844d
branch: default
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
diffstat:
sao/src/view/graph.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r f21002c5cb18 -r b69cd826844d 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;
}
});