summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
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