diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-01-18 08:22:29 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-01-18 08:22:29 +0700 |
| commit | 65929f7a9c00639a7b1c360ebc9870b221aa5339 (patch) | |
| tree | 04fe40072cda5622f30192073fae3de93c2f694d /indoteknik_api/controllers/api_v1/product.py | |
| parent | 78b151a7e90e84dfa3898b75cf4440c714ba9305 (diff) | |
remove useless code, add last seen products, add compile product in user activity log
Diffstat (limited to 'indoteknik_api/controllers/api_v1/product.py')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/product.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py index fc8e2610..78b03203 100644 --- a/indoteknik_api/controllers/api_v1/product.py +++ b/indoteknik_api/controllers/api_v1/product.py @@ -19,10 +19,10 @@ class Product(controller.Controller): is_brand_only = int(kw.get('is_brand_only', 0)) base_url = request.env['ir.config_parameter'].get_param('web.base.url') - current_time = datetime.now() - delta_time = current_time - timedelta(days=30) + # current_time = datetime.now() + # delta_time = current_time - timedelta(days=30) - delta_time = delta_time.strftime('%Y-%m-%d %H:%M:%S') + # delta_time = delta_time.strftime('%Y-%m-%d %H:%M:%S') query_products = [ ('type', '=', 'product'), ('active', '=', True), |
