[FIX] project: translate measure label in burndown chart graph view
Before this commit, Project > '# of tasks' from the burndown chart was not translatable to any language So in this commit, Project > '# of tasks' from the burndown chart will be translatable to any language task-3010685 X-original-commit: 1593436ac4ebbb121d3dc0a9725c74f3d7f0ad39 Part-of: odoo/odoo#103978
This commit is contained in:
committed by
Xavier BOL (xbo)
parent
ec86454778
commit
382aef698e
@@ -52,8 +52,11 @@ msgid "# Tasks"
|
||||
msgstr ""
|
||||
|
||||
#. module: project
|
||||
#. openerp-web
|
||||
#: code:addons/project/static/src/views/burndown_chart/burndown_chart_model.js:0
|
||||
#: model:ir.model.fields,field_description:project.field_project_milestone__task_count
|
||||
#: model:ir.model.fields,field_description:project.field_report_project_task_user__nbr
|
||||
#, python-format
|
||||
msgid "# of Tasks"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ export class BurndownChartModel extends GraphModel {
|
||||
* @override
|
||||
*/
|
||||
async _loadDataPoints(metaData) {
|
||||
metaData.measures.__count.string = '# of Tasks';
|
||||
metaData.measures.__count.string = this.env._t('# of Tasks');
|
||||
return super._loadDataPoints(metaData);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user