summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2023-07-31 09:33:19 +0000
committerIT Fixcomart <it@fixcomart.co.id>2023-07-31 09:33:19 +0000
commit61bbb1b7164378a31522312ca3a076d6d35141d3 (patch)
tree792601c9fdae3daa45d290dd0de150a4e3c79fe3 /indoteknik_custom/views
parentbf45239720a7eaa49557087fdfd523611b048a7c (diff)
parentf785e7605f4d0151a0f48e3d871b996c40e51351 (diff)
Merged in feature/voucher-cart (pull request #78)
Add flash sale tag on model, view, api response
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/product_pricelist.xml37
1 files changed, 15 insertions, 22 deletions
diff --git a/indoteknik_custom/views/product_pricelist.xml b/indoteknik_custom/views/product_pricelist.xml
index 0ad9e200..55139a24 100644
--- a/indoteknik_custom/views/product_pricelist.xml
+++ b/indoteknik_custom/views/product_pricelist.xml
@@ -7,29 +7,22 @@
<field name="arch" type="xml">
<field name="company_id" position="after">
<field name="is_flash_sale"/>
- <field name="flashsale_option" attrs="{'invisible':[('is_flash_sale', '=', False)]}"/>
</field>
- <group name="pricelist_settings" position="after">
- <group name="flash_sale_setting">
- <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="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)]
- }" />
- <field name="end_date" attrs="{
- 'invisible': [('is_flash_sale', '=', False)],
- 'required': [('is_flash_sale', '=', True)]
- }" />
- </group>
- </group>
+ <page name="pricelist_rules" position="before">
+ <page name="flash_sale_setting" string="Flash Sale" attrs="{'invisible': [('is_flash_sale', '=', False)]}">
+ <group>
+ <group>
+ <field name="flashsale_option" />
+ <field name="flashsale_tag" />
+ <field name="banner" widget="image" />
+ <field name="banner_mobile" widget="image" />
+ <field name="banner_top" widget="image" />
+ <field name="start_date" attrs="{'required': [('is_flash_sale', '=', True)]}" />
+ <field name="end_date" attrs="{'required': [('is_flash_sale', '=', True)]}" />
+ </group>
+ </group>
+ </page>
+ </page>
</field>
</record>
</odoo> \ No newline at end of file