diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-08-04 07:18:19 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-08-04 07:18:19 +0000 |
| commit | 2421dad6c88900949bc2891bc25006ffa838dd78 (patch) | |
| tree | 70e396dc08c26e77a94fbbe22edf07e96df88927 /indoteknik_api/controllers/api_v1 | |
| parent | 0a334d22de6cad94db8a501eca210450f91cde74 (diff) | |
| parent | ae7bed568731a6fda0156f2b170ba1bad84624be (diff) | |
Merged in development (pull request #85)
Development
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/category.py | 2 | ||||
| -rw-r--r-- | indoteknik_api/controllers/api_v1/voucher.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/controllers/api_v1/category.py b/indoteknik_api/controllers/api_v1/category.py index 22b5cb44..efbf52f2 100644 --- a/indoteknik_api/controllers/api_v1/category.py +++ b/indoteknik_api/controllers/api_v1/category.py @@ -54,7 +54,7 @@ class Category(controller.Controller): @controller.Controller.must_authorized() def get_categories_homepage_count(self): query = [('status', '=', 'tayang')] - categories = request.env['website.categories.homepage'].search_read(query, ['id']) + categories = request.env['website.categories.homepage'].search_read(query, ['id'], order="sequence") return self.response([x['id'] for x in categories]) diff --git a/indoteknik_api/controllers/api_v1/voucher.py b/indoteknik_api/controllers/api_v1/voucher.py index 0ecdd20d..3a2c798e 100644 --- a/indoteknik_api/controllers/api_v1/voucher.py +++ b/indoteknik_api/controllers/api_v1/voucher.py @@ -44,7 +44,7 @@ class Voucher(controller.Controller): quantity = product['quantity'] manufacture_id = product['manufacture']['id'] or False - if len(manufacture_ids) == 0 or (not product['has_flashsale'] and manufacture_id in manufacture_ids): + if len(manufacture_ids) == 0 or manufacture_id in manufacture_ids: has_match_manufacture = True if product['has_flashsale']: |
