summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2023-08-04 03:59:33 +0000
committerIT Fixcomart <it@fixcomart.co.id>2023-08-04 03:59:33 +0000
commit6d17228cd6c789fe4460e28807d5b39fb1bbe9b7 (patch)
treea4c961062c026e1005ebdc82547903c3f30c0a06 /indoteknik_custom/views
parentcc182dd9963fb8985661ca1b64a53e7f11f095c5 (diff)
parentbcc35009da39e9ee8b5e181006d3690316b83c59 (diff)
Merged in development (pull request #82)
Development
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