Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
5707 Представления

 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
1609
2
дек. 24
2602
0
нояб. 24
2616
3
мая 24
4843
0
янв. 25
2777