summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-09-22 14:29:12 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-09-22 14:29:12 +0700
commit553344781260c61062ceb5522b764b9811b30582 (patch)
tree1812e7774ee33ba62e7d509d00575788e596ba94
parent9bb5dc696324e21fc55c2452fb8cffd557b3ed95 (diff)
add attrs for discount_type voucher
-rwxr-xr-xindoteknik_custom/views/voucher.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/views/voucher.xml b/indoteknik_custom/views/voucher.xml
index 97634d7d..a2f5557a 100755
--- a/indoteknik_custom/views/voucher.xml
+++ b/indoteknik_custom/views/voucher.xml
@@ -39,7 +39,7 @@
</group>
<group string="Discount Settings" attrs="{'invisible': [('apply_type', '!=', 'all')]}">
<field name="min_purchase_amount" widget="monetary" required="1" />
- <field name="discount_type" required="1" />
+ <field name="discount_type" attrs="{'invisible': [('apply_type','!=','all')], 'required': [('apply_type', '=', 'all')]}" />
<label for="max_discount_amount" string="Discount Amount" />
<div class="d-flex align-items-center">