diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-09 14:47:45 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-09 14:47:45 +0700 |
| commit | 2262f57b0b56b7aa1535600de20b1a1dd611a991 (patch) | |
| tree | 0de5a4c64b6877c801de5e95e6caa6f89e806889 /indoteknik_api/controllers/api_v1/flash_sale.py | |
| parent | c50611bce3b2a57a7436f3f8b921207e36ff7f27 (diff) | |
| parent | d97277a0847bc57c0bc704c5ea62f75fadb461dc (diff) | |
Merge branch 'release' into staging
Diffstat (limited to 'indoteknik_api/controllers/api_v1/flash_sale.py')
| -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), }) |
