Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5674 มุมมอง

 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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 25
1599
Chatter looks weird in 18.0 แก้ไขแล้ว
2
ธ.ค. 24
2585
0
พ.ย. 24
2208
3
พ.ค. 24
4817
0
ม.ค. 25
2764