Skip to Content
Menu
This question has been flagged
1 Reply
3902 Views

I am trying to adjust the presentation of the chatter buttons (Send Message, Note, etc.).  I can't seem to figure out the inherit id for the template <t t-name="mail.chatter.Buttons"> located in mail/static/src/xml/chatter.xml.  I have tried various renditions like mail.mail.chatter.Buttons and mail.mail_chatter_Buttons and mail.chatter.Buttons  but nothing seems to work.  Could anybody please provide some guidance.  I have used xpath many times in templates but this one has stumped me.   

thanks

g

Avatar
Discard
Author Best Answer

I solved this using Jquery as follows:

<?xml version="1.0" encoding="UTF-8"?>

<templates>

    <t t-extend="mail.chatter.Buttons">

        <t t-jquery="button.o_chatter_button_new_message" t-operation="replace">

        </t>

    </t>

</templates>

It appears that as we are extending a Qweb template, jquery is way to do it and not xpath

Thanks

g

Avatar
Discard