Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3651 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

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. 



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 25
819
0
thg 1 24
1574
3
thg 12 22
4475
0
thg 3 22
1481
2
thg 3 22
5607