summaryrefslogtreecommitdiff
path: root/indoteknik_api/models
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2023-07-28 09:54:08 +0000
committerIT Fixcomart <it@fixcomart.co.id>2023-07-28 09:54:08 +0000
commitbf45239720a7eaa49557087fdfd523611b048a7c (patch)
treeb006e92ef0f3904984373e0b551fe9c0aa4c564d /indoteknik_api/models
parent71bdce1310997736f84a6d65d423fca801bfe655 (diff)
parent1563299905b3e0cf97129739c0ee0a6269ce4bc8 (diff)
Merged in feature/voucher-cart (pull request #77)
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,