I need a function that gives QOH of particular product. like def getQOH(product_product_id, stock_Location_id){
return qoh
}
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
1
de des. 17
|
4962 | |||
|
1
de març 15
|
3668 | |||
|
1
de març 15
|
11085 | |||
|
0
de març 15
|
4636 | |||
|
0
de març 15
|
5181 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.