I want to add a button here, how can I do that?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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
<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.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 2 25
|
1599 | ||
Chatter looks weird in 18.0
Đã xử lý
|
|
2
thg 12 24
|
2584 | |
|
0
thg 11 24
|
2185 | ||
|
3
thg 5 24
|
4816 | ||
|
0
thg 1 25
|
2763 |