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

I need a function that gives QOH of particular product. like def getQOH(product_product_id, stock_Location_id){

return qoh

}

Avatar
Abbandona
Risposta migliore

Hi Samba,

you can use the following method to get the stock. That methos is located into stock module and in stock.py file.

1) To get stock for a particular location : _product_get

2) To get stock for a particular location and its all child location : _product_all_get

3) To get Virtual stock for a particular location : _product_virtual_get

Avatar
Abbandona
Risposta migliore

Mr. Samba where did you put this?
 

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 17
4635
1
mar 15
3428
1
mar 15
10656
0
mar 15
4361
0
mar 15
4872