I tried this on the inventory module in the product.template form I have a name field (mandatory), a specification field, and a dimension field. Can I edit the search filter on each of these fields? for example like this: when I enter the name = Pipe, the specification and dimension fields only display a specification and dimension that only the pipe name has. can it be like that? please help.
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ờ
1
Trả lời
339
Lượt xem
Yes, you can do this kind of dynamic filtering inside the Odoo product.template form by combining:
@api.onchange methods in your Python model
domain attributes in your XML views
You want to filter the specification and dimension fields by the name chosen, so only the values that are relevant to that product name show up. Here is how you can do it.
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ý