From d95ce4227665cdb9459d380e521fb8ece0e09174 Mon Sep 17 00:00:00 2001 From: jvm-odoo Date: Thu, 9 Apr 2020 13:16:10 +0000 Subject: [PATCH] [FIX] project: make label_task translatable Issue - Install Projects - Change language - Check projects There is a word "X Tasks" which is not translated. Cause This is a model attribute which is not translatable. It can have any value "Tasks" is not mandatory. Solution Make it translatable OPW-2233084 closes odoo/odoo#49346 X-original-commit: 587160376237a12a9174ad5c4578a273b48ca489 Signed-off-by: Nicolas Martinelli (nim) Signed-off-by: Jason Van Malder (jvm) --- addons/project/models/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/models/project.py b/addons/project/models/project.py index 3228e6138bc..64a25144a69 100644 --- a/addons/project/models/project.py +++ b/addons/project/models/project.py @@ -181,7 +181,7 @@ class Project(models.Model): string='Members') is_favorite = fields.Boolean(compute='_compute_is_favorite', inverse='_inverse_is_favorite', string='Show Project on dashboard', help="Whether this project should be displayed on your dashboard.") - label_tasks = fields.Char(string='Use Tasks as', default='Tasks', help="Label used for the tasks of the project.") + label_tasks = fields.Char(string='Use Tasks as', default='Tasks', help="Label used for the tasks of the project.", translate=True) tasks = fields.One2many('project.task', 'project_id', string="Task Activities") resource_calendar_id = fields.Many2one( 'resource.calendar', string='Working Time',