Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3522 Vizualizări

Hey, when i do a call to get the `qty_available` on a product I get the quantity available at all warehouses/locations but also the virtual ones named something  like `Virtual Locations:  CompanyName/Inventory Adjustments`.


How do i get only the 'physical ' QuantityOnHand only without  the  virtual  quantities ?


Thanks

Imagine profil
Abandonează
Autor

thanks Josep, I want  to  know  how  to do  it  with python 

Cel mai bun răspuns

The stocks moves behavior in Odoo is similar to double-entry accounting. 

It means that an "IN" move in a location needs a "OUT" move in other location. 
When somebody makes a stock adjustment, for example increasing the stock, an opposite move is created.  In  this  case,  a  negative  move  in  a virtual  location   ("Inventory  adjustment"). The same occurs when somebody makes a reception from a vendor. 

Usually, the virtual locations are hidden in the views. You have to change the filters if you want to see them. 



Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mar. 25
652
0
ian. 24
1419
3
dec. 22
4268
0
mar. 22
1333
2
mar. 22
5339