Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
424 Weergaven



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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
2
jul. 25
492
1
mei 25
1013
2
nov. 24
4048
0
nov. 23
1168
1
apr. 22
5502