تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5692 أدوات العرض

 I want to add a button here, how can I do that?

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

Use the following code for adding the button in chatter

<t t-extend="mail.chatter.Composer">
<t t-jquery=".o_composer_send" t-operation="after">
<div class="col-lg-4">
<button class="btn btn-primary" style="margin-top: 10px;"
type="button">
Button Name
</button>
</div>

</t>
</t>

You can write the JavaScript code for adding functionality for the added button

Regards

الصورة الرمزية
إهمال
أفضل إجابة

Hi
you can add button after schedule activity button using following code

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

    <t t-jquery=".o_chatter_button_schedule_activity" t-operation="after">

        <button class="btn btn-link">Button Name</button>

    </t>

</t>

need to write JavaScript code if you want to perform some operation on click button




الصورة الرمزية
إهمال
الكاتب

This works. Thanks.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
فبراير 25
1606
2
ديسمبر 24
2590
0
نوفمبر 24
2398
3
مايو 24
4828
0
يناير 25
2769