Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
6332 Переглядів

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

return qoh

}

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Найкраща відповідь

Mr. Samba where did you put this?
 

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
груд. 17
4638
1
бер. 15
3435
1
бер. 15
10662
0
бер. 15
4370
0
бер. 15
4876