Untitled

mail@pastecode.io avatar
unknown
python
3 years ago
215 B
3
Indexable
Never
for warehouse in self.warehouse_ids:
    products = self.env['product.product'].with_context(warehouse=warehouse.id).search([])
    for product in products:
        print(product.display_name, product.qty_available)