summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-01-17 10:26:21 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-01-17 10:26:21 +0700
commitb9724e5d77c702c7418673bac3c711a60e1309d0 (patch)
treed9fd7502196842fba33c6d159cdd53cdd626b77a /indoteknik_api/controllers/api_v1
parent8f844b005d70dfb473730274ca980a84ae3eb9d7 (diff)
remove filter by date in new product
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/product.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py
index ba02b624..7e86bafd 100644
--- a/indoteknik_api/controllers/api_v1/product.py
+++ b/indoteknik_api/controllers/api_v1/product.py
@@ -28,7 +28,7 @@ class Product(controller.Controller):
('active', '=', True),
('image_128', '!=', False),
('website_description', '!=', False),
- ('create_date', '>=', delta_time),
+ # ('create_date', '>=', delta_time),
]
new_products = request.env['product.template'].search(query_products, order='create_date', limit=250)
brands = []
@@ -57,7 +57,7 @@ class Product(controller.Controller):
('x_manufacture', '=', brand.id),
('image_128', '!=', False),
('website_description', '!=', False),
- ('create_date', '>=', delta_time),
+ # ('create_date', '>=', delta_time),
]
count_products = request.env['product.template'].search_count(query)
if count_products < 6: