Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
539 Näkymät



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 

Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Tekijä

Thanks for your timely response. The above code hides the Log note button .

Tekijä

Its now working. Just need to remove t-if="props.hasMessageList" . Thanks a million for your support. I appreciate.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
heinäk. 25
583
1
toukok. 25
1136
2
marrask. 24
4141
0
marrask. 23
1266
1
huhtik. 22
5606