Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3615 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

Thanks

Hi Muhamed,

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

Thanks & Regards

Post Terkait Replies Tampilan Aktivitas
1
Nov 24
1809
1
Agu 21
2360
1
Apr 21
3809
0
Apr 21
2316
1
Agu 25
3004