summaryrefslogtreecommitdiff
path: root/indoteknik_api/models
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-07-28 16:53:32 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-07-28 16:53:32 +0700
commit1563299905b3e0cf97129739c0ee0a6269ce4bc8 (patch)
tree69efa8ef8a1a9e5d3337e013fd0e251753e83082 /indoteknik_api/models
parent4b281c6e037fc3b793a6a4b028542b3d73c97d49 (diff)
Add flash sale remaining time API response
Diffstat (limited to 'indoteknik_api/models')
-rw-r--r--indoteknik_api/models/product_template.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_api/models/product_template.py b/indoteknik_api/models/product_template.py
index 68ab79c2..b01e957b 100644
--- a/indoteknik_api/models/product_template.py
+++ b/indoteknik_api/models/product_template.py
@@ -72,6 +72,7 @@ class ProductTemplate(models.Model):
lowest_price = variant['price']
data_with_detail = {
+ 'flash_sale_remaining_time': product_template._get_flash_sale_remaining_time(),
'lowest_price': lowest_price,
'image': self.env['ir.attachment'].api_image('product.template', 'image_512', product_template.id),
'display_name': product_template.display_name,