I have product id and location id in my hand. Is therer any built in function to get quantity on hand of product in that location. Can any one give some small code to get QOH of product in particular location?
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ờ
Select a product from the refular product list. On the top of the screen under the "More" button, there should be an option "View stock per location" or something similair.
Samba, read the get_product_available method from stock/product.py, it gives you the overview of how to get the quantity of a certain product with various criteria. Specifically for location, you put in {'location': XXX} into the context when you browse or read the product, then you get the qty_available or virtual_available of the read/browse result.
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ý