diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-01-17 09:48:35 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-01-17 09:48:35 +0700 |
| commit | 8f844b005d70dfb473730274ca980a84ae3eb9d7 (patch) | |
| tree | 7a3072e59f238a51f061b48cfec8d5e9da816b7d /indoteknik_api/controllers/api_v1 | |
| parent | 27f620c8b98cd2689f46b4c2f2f19c1c1424aa43 (diff) | |
change min product to 6 in new product api
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/product.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py index 264c3443..ba02b624 100644 --- a/indoteknik_api/controllers/api_v1/product.py +++ b/indoteknik_api/controllers/api_v1/product.py @@ -60,7 +60,7 @@ class Product(controller.Controller): ('create_date', '>=', delta_time), ] count_products = request.env['product.template'].search_count(query) - if count_products < 5: + if count_products < 6: _logger.info('Brand Skipped %s' % brand.x_name) continue products = request.env['product.template'].search(query, order='name', limit=12) |
