Hello all, please tell me where is mistake. i'm not get any error, console.log in .js is working, but i don't see any changes in template view
js
/** @odoo-module **/
import { registerInstancePatchModel, registerFieldPatchModel,} from"@mail/model/model_core";import { attr } from"@mail/model/model_field";
registerInstancePatchModel( "mail.discuss_sidebar_category_item", "sync_telegram/static/src/components/discuss_sidebar/discuss_sidebar_category_item.js", {
/**
* @private
* @returns{boolean}
*/
_computeIsTelegramChannel() { console.log('_computeIsTelegramChannel==============='); return this.channelType === "multi_livechat_telegram";
},
});
registerFieldPatchModel( "mail.discuss_sidebar_category_item", "sync_telegram/static/src/components/discuss_sidebar/discuss_sidebar_category_item.js", { isTelegramChannel:attr({ compute:"_computeIsTelegramChannel", }),
});
xml
xml version="1.0" encoding="UTF-8"?><templatesxml:space="preserve">
<t t-inherit="mail.DiscussSidebarCategoryItem"t-inherit-mode="extension"> <xpath expr="//t[@t-if='categoryItem.hasSettingsCommand']"position="after"> <span>Some textspan>
<t t-if="categoryItem.isTelegramChannel"> <div class="o_DiscussSidebarCategoryItem_command o_DiscussSidebarCategoryItem_commandSettings fa fa-tree"t-on-click="categoryItem.onClickCommandSettings" title="Channel settings"role="img"/>t>
xpath>
t>
templates>