Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3555 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer

Hi Muhamed,

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

Thanks & Regards

Gerelateerde posts Antwoorden Weergaven Activiteit
1
nov. 24
1775
1
aug. 21
2336
1
apr. 21
3778
0
apr. 21
2268
1
feb. 24
2931