I want to change Log note button text. this chatter is available on right section of helpdesk ticket. I appreciate if someone help me out in this
신고된 질문입니다
1
회신
2583
화면
Hi,
Try with the following code.
<templates>
<t t-name="important.Chatter" t-inherit="mail.Chatter"
t-inherit-mode="extension">
<xpath expr="//*[contains(@class, 'o-mail-Chatter-logNote')]"
position="replace">
<button t-if="props.hasMessageList" class="o-mail-Chatter-logNote btn text-nowrap me-1" t-att-class="{
'btn-primary active': state.composerType === 'note',
'btn-secondary': state.composerType !== 'note',
'my-2': !props.compactHeight
}" data-hotkey="shift+m" t-on-click="() => this.toggleComposer('note')">
Your Button Name
</button>
</xpath>
</t>
</templates>
Reference:
-https://www.cybrosys.com/blog/how-to-add-a-custom-button-to-the-chatter-in-odoo-18
Hope it helps
Thanks for your timely response. The above code hides the Log note button .
Its now working. Just need to remove t-if="props.hasMessageList" . Thanks a million for your support. I appreciate.
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
|
2
4월 26
|
4077 | ||
|
|
2
7월 25
|
2631 | ||
|
|
2
11월 24
|
6913 | ||
|
|
0
11월 23
|
2819 | ||
|
|
1
4월 22
|
8035 |