diff options
| -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 5573ea55..7b850d57 100644 --- a/indoteknik_custom/models/product_pricelist.py +++ b/indoteknik_custom/models/product_pricelist.py @@ -9,6 +9,7 @@ class ProductPricelist(models.Model): banner = fields.Binary(string='Banner') start_date = fields.Datetime(string='Start Date') end_date = fields.Datetime(string='End Date') + banner_mobile = fields.Binary(string='Banner Mobile') class ProductPricelistItem(models.Model): diff --git a/indoteknik_custom/views/product_pricelist.xml b/indoteknik_custom/views/product_pricelist.xml index 18e9835a..3ff6854f 100644 --- a/indoteknik_custom/views/product_pricelist.xml +++ b/indoteknik_custom/views/product_pricelist.xml @@ -13,6 +13,9 @@ <field name="banner" widget="image" attrs="{ 'invisible': [('is_flash_sale', '=', False)] }" /> + <field name="banner_mobile" widget="image" attrs="{ + 'invisible': [('is_flash_sale', '=', False)] + }" /> <field name="start_date" attrs="{ 'invisible': [('is_flash_sale', '=', False)], 'required': [('is_flash_sale', '=', True)] |
