Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3559 Visualizzazioni

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
Avatar
Abbandona
Risposta migliore

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


Avatar
Abbandona

Hi Muhamed,

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

Thanks & Regards

Post correlati Risposte Visualizzazioni Attività
1
nov 24
1782
1
ago 21
2337
1
apr 21
3778
0
apr 21
2268
1
feb 24
2931