From b9724e5d77c702c7418673bac3c711a60e1309d0 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 17 Jan 2023 10:26:21 +0700 Subject: remove filter by date in new product --- indoteknik_api/controllers/api_v1/product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indoteknik_api/controllers/api_v1') 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: -- cgit v1.2.3