Skip to Content
मेन्यू
This question has been flagged
1 Reply
3563 Views

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
Discard
Best Answer

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
Discard

Hi Muhamed,

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

Thanks & Regards

Related Posts Replies Views Activity
1
नव॰ 24
1783
1
अग॰ 21
2337
1
अप्रैल 21
3778
0
अप्रैल 21
2269
1
फ़र॰ 24
2931