summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-06-16 15:59:46 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-06-16 15:59:46 +0700
commite2ccd5719de9cf03a422e93fbef9a7f035b854a5 (patch)
tree4facd82ff5536cfdd41d2b1c8a9125052c047e8d
parentfd63ff133764477f39c9dd32c5177dd67f293abb (diff)
Fix shipping cost and paid by required when create_date false or greater than 15 Juni 2023
-rwxr-xr-xindoteknik_custom/views/sale_order.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index 94073fd7..b160d9b1 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -20,8 +20,8 @@
</button>
<field name="payment_term_id" position="after">
<field name="create_date" invisible="1"/>
- <field name="shipping_cost_covered" attrs="{'required': [('create_date', '&gt;', '2023-06-15')]}"/>
- <field name="shipping_paid_by" attrs="{'required': [('create_date', '&gt;', '2023-06-15')]}"/>
+ <field name="shipping_cost_covered" attrs="{'required': ['|', ('create_date', '&gt;', '2023-06-15'), ('create_date', '=', False)]}"/>
+ <field name="shipping_paid_by" attrs="{'required': ['|', ('create_date', '&gt;', '2023-06-15'), ('create_date', '=', False)]}"/>
<field name="delivery_amt"/>
<field name="fee_third_party"/>
<field name="total_percent_margin"/>