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)