summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-06-16 08:52:48 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-06-16 08:52:48 +0700
commit92fae861a362ad49bb299ceeac62d517108880de (patch)
tree0ce5c6c5cb0c021ccf091b6caa8939dcf84565c6
parent24649f8e939484759ef34e5e68f251d951f63c02 (diff)
Update sale_order shipping paid by and shipping cost covered required when create_date > 2023-06-15
-rwxr-xr-xindoteknik_custom/views/sale_order.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index ea13c954..53740dd5 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -19,8 +19,9 @@
type="action" attrs="{'invisible': [('approval_status', '!=', 'approved')]}"/>
</button>
<field name="payment_term_id" position="after">
- <field name="shipping_cost_covered" required="1"/>
- <field name="shipping_paid_by" required="1"/>
+ <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="delivery_amt"/>
<field name="fee_third_party"/>
<field name="total_percent_margin"/>