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
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!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
1
de nov. 24
|
3836 | |||
|
1
d’ag. 21
|
3998 | |||
|
1
d’abr. 21
|
5742 | |||
|
0
d’abr. 21
|
4057 | |||
|
2
d’ag. 25
|
5681 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.