Why is there a filter for products with available quantity but not for lots. If I try to define a filter for lots based on product_qty, it throws error stating that unsearchable field. As per my knowledge, It is because the field is computed field. But the same applies for available_qty in product right ? How's the filter for products on available_qty working?
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,
Even though the qty_available is not a stored field and it is working fine because, if you check the original field definition you can see a search function defined for the field.
qty_available = fields.Float(
'Quantity On Hand', compute='_compute_quantities', search='_search_qty_available',
compute_sudo=False, digits='Product Unit of Measure')
By defining search function, we can make non stored fields to be used in search/filter.
See more in: Searchable Non Stored Compute Field In Odoo
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 5 18
|
6624 | ||
|
0
thg 8 17
|
4655 | ||
|
2
thg 3 24
|
1134 | ||
|
2
thg 8 22
|
2231 | ||
|
5
thg 9 20
|
12433 |