diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-22 14:29:12 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-22 14:29:12 +0700 |
| commit | 553344781260c61062ceb5522b764b9811b30582 (patch) | |
| tree | 1812e7774ee33ba62e7d509d00575788e596ba94 | |
| parent | 9bb5dc696324e21fc55c2452fb8cffd557b3ed95 (diff) | |
add attrs for discount_type voucher
| -rwxr-xr-x | indoteknik_custom/views/voucher.xml | 2 |
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"> |
