summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/category.py2
-rw-r--r--indoteknik_api/controllers/api_v1/voucher.py2
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']: