콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
5683 화면

 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
1600
2
12월 24
2586
0
11월 24
2247
3
5월 24
4820
0
1월 25
2764