I want to update the product quantity on hand from python code
I have tried to use
self.env['stock.quant']._update_available_quantity(product_id, company.internal_transit_location_id, qty)but quantity doesn't update
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to update the product quantity on hand from python code
I have tried to use
self.env['stock.quant']._update_available_quantity(product_id, company.internal_transit_location_id, qty)but quantity doesn't update
Hi,
You can try with the below solution
self.env['stock.quant']._update_available_quantity(product_id, order_id.warehouse_id.lot_stock_id, 100)Thanks & Regards,Thanks
Hi Muhamed,
Can you please upvote this answer if you have enough Karma/Points?
Thanks & Regards
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація| Related Posts | Відповіді | Переглядів | Дія | |
|---|---|---|---|---|
|
|
1
лист. 24
|
2449 | ||
|
|
1
серп. 21
|
2908 | ||
|
|
1
квіт. 21
|
4414 | ||
|
|
0
квіт. 21
|
2933 | ||
|
|
2
серп. 25
|
4062 |