I am trying to add Smart buttons when creating a Sales Order but cannot figure out how to do it. There is Smart buttons available when you are editing a Sales orders but not when you are creating a sales order. I think it would be very useful for showing customer balance etc when creating a sales order without having to click on the customer information button.
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ờ
2
Trả lời
7550
Lượt xem
here is an example for adding smart buttons
<div class="oe_button_box" name="button_box">
<button name="your_action"
type="object"
class="oe_stat_button"
icon="fa-pencil-square-o">
<field name="your_field" widget="statinfo" string="Some String"/>
</button>
</div>
Hello Jay Roy,
You have use simple attrs condition on your button like below code i hope it's help you.
Like When you create any form than your form id always flase so when you save your form than it will generate a id.
<button name="your_action_name" type="object" string="XYZ" class="oe_highlight"
attrs="{'invisible':[('id','=',False)]}"/>
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 | |
---|---|---|---|---|
|
2
thg 3 23
|
10179 | ||
Cacher le bouton "créer" d'une liste
Đã xử lý
|
|
2
thg 3 23
|
2545 | |
Add class to button from function
Đã xử lý
|
|
2
thg 5 22
|
4555 | |
|
0
thg 3 22
|
1681 | ||
|
1
thg 5 21
|
4460 |