Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1788 Visualizzazioni

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!

Avatar
Abbandona
Autore

Thank you, and almost there but not quite.

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

Post correlati Risposte Visualizzazioni Attività
1
ott 25
320
2
set 25
682
1
ago 25
649
0
lug 25
354
2
giu 25
1972