From c8deb68d84cb212a33a28481506967a17cf09d71 Mon Sep 17 00:00:00 2001 From: Kartik Chavda Date: Tue, 8 Feb 2022 09:40:55 +0000 Subject: [PATCH] [FIX] project: hide sub-task count in kanban view of task before this commit, in kanban view of task sub-task count of task is visible when sub-task feature is disable from setting. after this commit, sub-task count of task will not be visible in kanban view of task when sub-task feature is disable from setting. task-2758779 X-original-commit: 1e45586c16443c3a19ae16f604882087dea3cc4e Part-of: odoo/odoo#89329 --- .../src/js/widgets/project_name_with_subtask_count_widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/static/src/js/widgets/project_name_with_subtask_count_widget.js b/addons/project/static/src/js/widgets/project_name_with_subtask_count_widget.js index a9266fb8e12..125ebdf0178 100644 --- a/addons/project/static/src/js/widgets/project_name_with_subtask_count_widget.js +++ b/addons/project/static/src/js/widgets/project_name_with_subtask_count_widget.js @@ -18,7 +18,7 @@ export const FieldNameWithSubTaskCount = FieldChar.extend({ _render: function () { let result = this._super.apply(this, arguments); - if (this.recordData.child_text) { + if (this.recordData.allow_subtasks && this.recordData.child_text) { this.$el.append($('') .addClass("text-muted ml-2") .text(this.recordData.child_text)