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

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

<templates xml:space="preserve">


   <t t-extend="mail.ChatThread.Message">

      <t t-jquery=".o_thread_message" t-operation="replace">

       <h1>helloo</h1>

         <small class="o_mail_timestamp" t-att-title="message.date">

            <t t-esc="message.date"/>

         </small>

      </t>

   </t>


</templates>



-----Mainfest file------


# -*- coding: utf-8 -*-

{

    'name': "im_live_chat_design",


    'summary': """

        Short (1 phrase/line) summary of the module's purpose, used as

        subtitle on modules listing or apps.openerp.com""",


    'description': """

        Long description of module's purpose

    """,


    'author': "My Company",

    'website': "http://www.yourcompany.com",


    # Categories can be used to filter modules in modules listing

    # Check https://github.com/odoo/odoo/blob/master/odoo/addons/base/module/module_data.xml

    # for the full list

    'category': 'Uncategorized',

    'version': '0.1',


    # any module necessary for this one to work correctly

    'depends': ['base','im_livechat'],


    # always loaded

    # 'data': [

    # # 'security/ir.model.access.csv',

    # 'views/views.xml',

    # 'views/templates.xml',

    # ],

    # # only loaded in demonstration mode

    # 'demo': [

    # 'demo/demo.xml',

    # ],

    'qweb': [

            'static/src/xml/thread_extend.xml',

        ],

    'installable': True,

    'application': True,

}

Avatar
Discard
Best Answer

Hi, your problem here, wrong search

<t t-jquery=".o_thread_message" t-operation="replace">

My code work for odoo 9 and 10 too:

<t t-extend="mail.ChatThread.Message">  

      <t t-jquery="i[class='fa fa-reply o_thread_message_reply']" t-operation="replace">
       <span>helloo</span>
      </t>
   </t>


Avatar
Discard
Author

now my code is work but not effect odoo website its show in backed side and basically i want chage background color in visitor message and admin message

Related Posts Replies Views Activity
5
Sep 24
8296
1
Dec 22
2726
1
Mar 22
2654
2
Apr 20
3920
5
Sep 19
6740