Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3581 Vizualizări

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
Imagine profil
Abandonează
Cel mai bun răspuns

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,
Sunny Sheth


Imagine profil
Abandonează

Hi Muhamed,

Can you please upvote this answer if you have enough Karma/Points?

Thanks & Regards

Related Posts Răspunsuri Vizualizări Activitate
1
nov. 24
1790
1
aug. 21
2341
1
apr. 21
3786
0
apr. 21
2279
1
feb. 24
2936