diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-08-04 14:17:28 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-08-04 14:17:28 +0700 |
| commit | ae7bed568731a6fda0156f2b170ba1bad84624be (patch) | |
| tree | 9831a58348eaacc26ee1cf30e6e02c308f1b151a /indoteknik_api/controllers/api_v1 | |
| parent | 339c3f00bc33fae434c8394885b71471b281d7c7 (diff) | |
Fix sequence product category homepage API
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/category.py | 2 |
1 files changed, 1 insertions, 1 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]) |
