Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Change text of Send Message Button

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
helpdeskChatter
2 Răspunsuri
1385 Vizualizări
Imagine profil
Hashir Amjad



I want to change send message button text. this chatter is available on right section of helpdesk ticket. I appreciate if someone help me out in this 

0
Imagine profil
Abandonează
Imagine profil
Cybrosys Techno Solutions Pvt.Ltd
Cel mai bun răspuns

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-sendMessage')]"

              position="replace">

            <button class="o-mail-Chatter-sendMessage btn text-nowrap me-1" t-att-class="{

                'btn-primary': state.composerType !== 'note',

                'btn-secondary': state.composerType === 'note',

                'active': state.composerType === 'message',

                'my-2': !props.compactHeight

            }" t-att-disabled="!state.thread.hasWriteAccess and !(state.thread.hasReadAccess and state.thread.canPostOnReadonly) and props.threadId" data-hotkey="m" t-on-click="() => this.toggleComposer('message')">

                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

0
Imagine profil
Abandonează
Hashir Amjad
Autor

Thanks for your timely support. I appreciate , if you guide me to change the Log note button text also.

Hashir Amjad
Autor

Getting this error if apply this on Log Note button.

OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
Error: An error occured in the owl lifecycle (see this Error's "cause" property)
at handleError (https://hui-opco-staging-22166402.dev.odoo.com/web/assets/f8a0653/web.assets_web.min.js:972:101)
at App.handleError (https://hui-opco-staging-22166402.dev.odoo.com/web/assets/f8a0653/web.assets_web.min.js:1619:29)
at Fiber._render (https://hui-opco-staging-22166402.dev.odoo.com/web/assets/f8a0653/web.assets_web.min.js:997:19)
at Fiber.render (https://hui-opco-staging-22166402.dev.odoo.com/web/assets/f8a0653/web.assets_web.min.js:995:6)
at ComponentNode.initiateRender (https://hui-opco-staging-22166402.dev.odoo.com/web/assets/f8a0653/web.assets_web.min.js:1065:47)

Caused by: Error: Element '<xpath expr="//*[contains(@class, 'o-mail-Chatter-logNote') and @data-hotkey='n']" position="replace">
<button class="o-mail-Chatter-logNote btn text-nowrap me-1" t-att-class="{ 'btn-secondary': state.composerType !== 'message', 'btn-primary': state.composerType === 'note', 'active': state.composerType === 'note', 'my-2': !props.compactHeight }" t-att-disabled="!state.thread.hasWriteAccess and props.threadId" data-hotkey="n" t-on-click="() =&gt; this.toggleComposer('note')">
Internal Note
</button>
</xpath>' cannot be located in element tree
Error: Element '<xpath expr="//*[contains(@class, 'o-mail-Chatter-logNote') and @data-hotkey='n']" position="replace">
<button class="o-mail-Chatter-logNote btn text-nowrap me-1" t-att-class="{ 'btn-secondary': state.composerType !== 'message', 'btn-primary': state.composerType === 'note', 'active': state.composerType === 'note', 'my-2': !props.compactHeight }" t-att-disabled="!state.thread.hasWriteAccess and props.threadId" data-hotkey="n" t-on-click="() =&gt; this.toggleComposer('note')">
Internal Note
</button>
</xpath>' cannot be located in element tree

Imagine profil
D Enterprise
Cel mai bun răspuns

Hii,

Create or update your custom module.

Add an XML file like this:

<!-- my_module/views/chatter_button_override.xml --> <odoo> <template id = "custom_chatter_send_message_button" inherit_id = "mail.chatter"> <xpath expr = "//button[@class='o_chatter_button_send']" position = "attributes"> <attribute name = "title" >Send Update </attribute> </xpath> <xpath expr = "//button[@class='o_chatter_button_send']/span" position = "replace"> <span>Send Update </span> </xpath> </template> </odoo>

This will replace the text "Send message" with "Send Update"

i hope it is usefull

0
Imagine profil
Abandonează
Hashir Amjad
Autor

Hi , Thanks for your time but this code is giving error, template name not found. I would recommend Cybrosys Answer. That one is working.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Change text of Log Note Button Rezolvat
helpdesk chatter Chatter
Imagine profil
Imagine profil
1
iul. 25
1340
Ai for note taking on repetitive notes
helpdesk Knowledge Chatter
Imagine profil
0
nov. 23
1932
¿Cómo puedo hablar con una persona en Aeroméxico 4718?
helpdesk
Imagine profil
0
nov. 25
3
Sales Order and Invoice Warning Messages in Helpdesk Rezolvat
helpdesk
Imagine profil
Imagine profil
1
aug. 25
916
Support Process Blueprint functionality in Odoo (Same as Zoho desk Blueprint) | Odoo v17
helpdesk
Imagine profil
0
mar. 25
2320
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now