I tried to inherit the view of button for specific group. There's this button in Inventory>Products>Product that can be seen in top, named .
But when inheriting it, it show's the button but the sales_count remains 0, even though there's a sold history.
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,
Please try to use the below example for inheriting buttons.
<odoo>
<record id="product_template_form_
<field name="name">product.template.
<field name="model">product.template<
<field name="inherit_id" ref="sale.product_template_
<field name="arch" type="xml">
<xpath expr="//button[@name='action_
<!-- Modify the attributes you want to change -->
<attribute name="help">Updated help text for the button</attribute>
<attribute name="icon">fa-new-icon</
</xpath>
</field>
</record>
</odoo>
Hope it helps
I already inherited the button. What my problem is the sale_count. It remains 0 no matter how i tried to inherit the view.
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 | |
---|---|---|---|---|
Button with classes doesn't work ??
Đã xử lý
|
|
1
thg 5 16
|
7281 | |
|
4
thg 3 24
|
3672 | ||
|
1
thg 10 23
|
5566 | ||
|
2
thg 3 23
|
10312 | ||
Cacher le bouton "créer" d'une liste
Đã xử lý
|
|
2
thg 3 23
|
2611 |
Someone please help me about this?