diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-04-28 13:47:19 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-04-28 13:47:19 +0700 |
| commit | 9a293f7f718e5536dfaf57926657ad1d6dd5c581 (patch) | |
| tree | ac03e44ed60c64aa4f74f63b175180a4c9b09702 /indoteknik_api/controllers/api_v1 | |
| parent | 508147aa709a936acbb7a7d0d988660ea553d58c (diff) | |
add field for top banner in flash sale
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 a0aaa44e..dc7c3928 100644 --- a/indoteknik_api/controllers/api_v1/flash_sale.py +++ b/indoteknik_api/controllers/api_v1/flash_sale.py @@ -27,6 +27,7 @@ class FlashSale(controller.Controller): 'name': pricelist.name, 'banner': request.env['ir.attachment'].api_image('product.pricelist', 'banner', pricelist.id), 'banner_mobile': request.env['ir.attachment'].api_image('product.pricelist', 'banner_mobile', pricelist.id), + 'banner_top': request.env['ir.attachment'].api_image('product.pricelist', 'banner_top', pricelist.id), 'duration': round((pricelist.end_date - datetime.now()).total_seconds()), 'product_total': request.env['product.pricelist.item'].search_count(query), }) |
