Hello. I am having trouble trying to add stock to a product in my Odoo using the API. Currently, I am trying to add it to the model "stock.quant" but does not work since it prints this message: "You cannot take products from or deliver products to a location of type "view" (Physical Locations).". I also have tried to use "stock.move.line" with "stock.picking" but since I have to specify source warehouse, I cannot do it. Thanks!
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ờ
Hello Garber,
""You cannot take products from or deliver products to a location of type "view" (Physical Locations)."""
Above validation error occur only, when we try to update stock for location which has usage="view".
please apply following domain to select location for product on stock.quant to update stock.
domain="[('usage', 'in', ['internal', 'transit'])]"
Thanks & Regards,
CandidRoot Solutions Pvt. Ltd.
Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat
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 | |
---|---|---|---|---|
|
3
thg 1 23
|
7726 | ||
|
1
thg 3 22
|
5530 | ||
|
1
thg 2 22
|
5666 | ||
|
1
thg 7 20
|
9447 | ||
|
1
thg 1 24
|
3807 |
Thank you for your answer! It helped me a lot! I have to be sure that the location is internal. Thanks!