diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-11-08 09:56:51 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-11-08 09:56:51 +0700 |
| commit | bab632a223a0c8809c7629756f895732d288c6ff (patch) | |
| tree | 725f45a9dac27fdae0df21fb057ceab8c4c697f1 /indoteknik_api/controllers/api_v1 | |
| parent | f650fb35bd977d868930a23e6a6f36d9c657b66f (diff) | |
add name in flash sale response api
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/flash_sale.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_api/controllers/api_v1/flash_sale.py b/indoteknik_api/controllers/api_v1/flash_sale.py index 7f0166ee..c6bbd284 100644 --- a/indoteknik_api/controllers/api_v1/flash_sale.py +++ b/indoteknik_api/controllers/api_v1/flash_sale.py @@ -42,6 +42,7 @@ class FlashSale(controller.Controller): product_templates = self.search_filter('product.template', kw, query) data = { 'flash_sale': { + 'name': active_flash_sale.name, 'banner': base_url + 'api/image/product.pricelist/banner/' + str(active_flash_sale.id) if active_flash_sale.banner else '', 'duration': round((active_flash_sale.end_date - datetime.now()).total_seconds()), 'product_total': request.env['product.template'].search_count(query), |
