From d47876712dd119851d988f891b44b0ebf6f91d27 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 14 Mar 2023 16:37:28 +0700 Subject: add flashsale option for website --- indoteknik_custom/models/product_pricelist.py | 4 ++++ indoteknik_custom/views/product_pricelist.xml | 1 + 2 files changed, 5 insertions(+) diff --git a/indoteknik_custom/models/product_pricelist.py b/indoteknik_custom/models/product_pricelist.py index 190887cf..a309945d 100644 --- a/indoteknik_custom/models/product_pricelist.py +++ b/indoteknik_custom/models/product_pricelist.py @@ -10,6 +10,10 @@ class ProductPricelist(models.Model): start_date = fields.Datetime(string='Start Date') end_date = fields.Datetime(string='End Date') banner_mobile = fields.Binary(string='Banner Mobile') + flashsale_option = fields.Selection([ + ('all', 'For All User'), + ('registered_user', 'Only for Registered User') + ], string='Flashsale Option') class ProductPricelistItem(models.Model): diff --git a/indoteknik_custom/views/product_pricelist.xml b/indoteknik_custom/views/product_pricelist.xml index 3ff6854f..4cf06e18 100644 --- a/indoteknik_custom/views/product_pricelist.xml +++ b/indoteknik_custom/views/product_pricelist.xml @@ -7,6 +7,7 @@ + -- cgit v1.2.3