コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3575 ビュー

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
アバター
破棄
最善の回答

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


アバター
破棄
著作者

Thanks

Hi Muhamed,

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

Thanks & Regards

関連投稿 返信 ビュー 活動
1
11月 24
1789
1
8月 21
2339
1
4月 21
3783
0
4月 21
2273
1
2月 24
2933