跳至内容
菜单
此问题已终结
2 回复
5686 查看

 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
2月 25
1601
2
12月 24
2590
0
11月 24
2304
3
5月 24
4823
0
1月 25
2768