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
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
1
nov 24
|
2462 | ||
|
|
1
ago 21
|
2920 | ||
|
|
1
apr 21
|
4441 | ||
|
|
0
apr 21
|
2948 | ||
|
|
2
ago 25
|
4090 |