diff options
Diffstat (limited to 'indoteknik_custom')
| -rw-r--r-- | indoteknik_custom/models/product_pricelist.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/views/product_pricelist.xml | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/indoteknik_custom/models/product_pricelist.py b/indoteknik_custom/models/product_pricelist.py index a309945d..2edaeb80 100644 --- a/indoteknik_custom/models/product_pricelist.py +++ b/indoteknik_custom/models/product_pricelist.py @@ -14,6 +14,7 @@ class ProductPricelist(models.Model): ('all', 'For All User'), ('registered_user', 'Only for Registered User') ], string='Flashsale Option') + banner_top = fields.Binary(string='Banner Top') class ProductPricelistItem(models.Model): diff --git a/indoteknik_custom/views/product_pricelist.xml b/indoteknik_custom/views/product_pricelist.xml index 4cf06e18..0ad9e200 100644 --- a/indoteknik_custom/views/product_pricelist.xml +++ b/indoteknik_custom/views/product_pricelist.xml @@ -17,6 +17,9 @@ <field name="banner_mobile" widget="image" attrs="{ 'invisible': [('is_flash_sale', '=', False)] }" /> + <field name="banner_top" widget="image" attrs="{ + 'invisible': [('is_flash_sale', '=', False)] + }" /> <field name="start_date" attrs="{ 'invisible': [('is_flash_sale', '=', False)], 'required': [('is_flash_sale', '=', True)] |
