summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/graph/graph_controller.js
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2021-01-04 08:55:32 +0000
committerMartin Trigaux <mat@odoo.com>2021-01-04 09:04:18 +0000
commit1b10d4e9240a1d4892143284e806ba8ab8281c9d (patch)
tree2e088aed5bb270f95d508c1766d7cdedeea0063d /addons/web/static/src/js/views/graph/graph_controller.js
parentcffe65f2d8639278e5d765e063861766236510f8 (diff)
[FIX] web: translate report button
The button "Group By" and "Measures" were untranslated opw-2421769 closes odoo/odoo#63977 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/graph/graph_controller.js')
-rw-r--r--addons/web/static/src/js/views/graph/graph_controller.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/static/src/js/views/graph/graph_controller.js b/addons/web/static/src/js/views/graph/graph_controller.js
index 5751c5b5805..6cb2b89989a 100644
--- a/addons/web/static/src/js/views/graph/graph_controller.js
+++ b/addons/web/static/src/js/views/graph/graph_controller.js
@@ -10,6 +10,7 @@ const { ComponentWrapper } = require('web.OwlCompatibility');
const DropdownMenu = require('web.DropdownMenu');
const { DEFAULT_INTERVAL, INTERVAL_OPTIONS } = require('web.searchUtils');
const { qweb } = require('web.core');
+const { _t } = require('web.core');
class CarretDropdownMenu extends DropdownMenu {
/**
@@ -126,7 +127,7 @@ var GraphController = AbstractController.extend({
// Instantiate and append MeasureMenu
this.measures.forEach(m => m.isActive = m.fieldName === state.measure);
this.measureMenu = new ComponentWrapper(this, CarretDropdownMenu, {
- title: "Measures",
+ title: _t("Measures"),
items: this.measures,
});
this.buttonDropdownPromises = [this.measureMenu.mount(fragment)];
@@ -134,7 +135,7 @@ var GraphController = AbstractController.extend({
if (this.isEmbedded) {
// Instantiate and append GroupBy menu
this.groupByMenu = new ComponentWrapper(this, CarretDropdownMenu, {
- title: "Group By",
+ title: _t("Group By"),
icon: 'fa fa-bars',
items: this._getGroupBys(state.groupBy),
});