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

Hello

When I go to Warehouse Menu > Configuration > Location and select a location, there is a 'Product' button on the top right.

Clicking that button will show products in that location only

 // Upload photo function of this forum doesn't seem to work, pleas take a look at this:

http://i848.photobucket.com/albums/ab47/MrLoyalNguyen/location_products_zps1drlek2c.png

I want to get this list in code too.

I traced into code of stock module. In stock/stock_view.xml, there is a 'Product' button declaration there, linked to a 'act_window' action, id="act_product_location_open" (its numeric id is 351 in my installation). Document about action (https://www.odoo.com/documentation/8.0/reference/actions.html) is too short for me, so I am getting stucked there and don't know how stock module loads products.

Could you please show me a hint, what document/tutorial should I read, where the loading code is?

Thank you in advanced!

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Temporary solved.

Products, product quantity and stock location are stored in 'stock_quant' table



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 25
832
1
thg 12 17
4418
1
thg 4 16
6182
0
thg 3 15
4688
2
thg 3 15
5538