İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3570 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
1785
1
Ağu 21
2337
1
Nis 21
3779
0
Nis 21
2272
1
Şub 24
2931