[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
This commit is contained in:
Kartik Chavda
2022-04-22 10:58:49 +02:00
parent bb2d6bd0d0
commit c8deb68d84
@@ -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($('<span>')
.addClass("text-muted ml-2")
.text(this.recordData.child_text)