diff options
Diffstat (limited to 'indoteknik_api/controllers/api_v1/manufacture.py')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/manufacture.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indoteknik_api/controllers/api_v1/manufacture.py b/indoteknik_api/controllers/api_v1/manufacture.py index ba2e3be9..135a6e5d 100644 --- a/indoteknik_api/controllers/api_v1/manufacture.py +++ b/indoteknik_api/controllers/api_v1/manufacture.py @@ -17,6 +17,10 @@ class Manufacture(controller.Controller): active_flash_sale = request.env['product.pricelist'].get_active_flash_sale() if active_flash_sale: manufacture_ids = [x.product_id.x_manufacture.id for x in active_flash_sale.item_ids] + elif page == 'ready-stock': + product_templates = request.env['product.template'].search([('virtual_qty', '>', 0)]) + if product_templates: + manufacture_ids = [x.x_manufacture.id for x in product_templates] elif page == 'category': category_id = kw.get('category_id') if not category_id: |
