İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4008 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

Thanks

Hi Muhamed,

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

Thanks & Regards

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 24
2245
1
Ağu 21
2731
1
Nis 21
4205
0
Nis 21
2698
2
Ağu 25
3768