Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
6315 Vues

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

return qoh

}

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

Mr. Samba where did you put this?
 

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
déc. 17
4614
1
mars 15
3425
1
mars 15
10649
0
mars 15
4334
0
mars 15
4867