تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2918 أدوات العرض

We have two warehouses and several products in our system. quantity of products are updated and assigned to these warehouses. Is there any way to find out a specific product is available in which warehouse? for example we have a product named 'testproduct'. I want to see which warehouses have this product using odoo ORM. (in which warehouses quantity of testproduct is not zero). thanks in advance.

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

I've figured it myself.

product = self.env['product.product'].browse(PRODUCT_ID)
available_qty = product.with_context({'warehouse' : WAREHOUSE_ID}).qty_available
if available_qty <= 0 ...
الصورة الرمزية
إهمال
أفضل إجابة

Hi Arian,

You can find that in the inventory report. There you can filter on product, and you'll find all stock locations in the list. In my screenshot below, I have 2 warehouses: M and TT.

There are 11 pieces of the whiteboard in warehouse M and 10 pieces in warehouse TT.


الصورة الرمزية
إهمال
الكاتب

Is there any way to do this using odoo ORMs?

Sorry, that I don't know

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يونيو 16
2824
2
يوليو 22
5039
2
أغسطس 25
405
2
أغسطس 25
2544
2
مايو 25
897