İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3743 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
2004
1
Ağu 21
2493
1
Nis 21
3948
0
Nis 21
2428
2
Ağu 25
3402