跳至內容
選單
此問題已被標幟
1774 瀏覽次數

Is there a way to get the qty_available of a specific delivery/stock picking (I always get one product per delivery)?

I have the stock.picking of the delivery.

Something in line with the following but can't figure out which context variable to provide for the picking

self.product_id.with_context({'picking_id' : self .picking_id, 'strict' : True}).qty_available


Thank you!

頭像
捨棄
作者

Thank you, and almost there but not quite.

I needed the available quantity for a specific delivery and not for a location.

相關帖文 回覆 瀏覽次數 活動
1
10月 25
235
2
9月 25
658
1
8月 25
634
0
7月 25
354
2
6月 25
1923