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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
342
Lượt xem
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.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
Change text of Send Message Button
Đã xử lý
|
|
2
thg 7 25
|
413 | |
|
1
thg 5 25
|
918 | ||
|
2
thg 11 24
|
3970 | ||
|
0
thg 11 23
|
1123 | ||
|
1
thg 4 22
|
5378 |