summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/sale_order.xml
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-06-19 17:08:47 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-06-19 17:08:47 +0700
commite595c9ce8de2eb8c778b998cef58b2d85c29a6a7 (patch)
tree799c57e3e759ad4fe28b188bfbe58870f5159b64 /indoteknik_custom/views/sale_order.xml
parente59d33ea416afbe5d2e531f524be37c1eeef6015 (diff)
parent7ad6f514da84253dfed42efc18c3c9343d7cc052 (diff)
Merge branch 'nathan-dev' of bitbucket.org:altafixco/indoteknik-addons into nathan-dev
Diffstat (limited to 'indoteknik_custom/views/sale_order.xml')
-rwxr-xr-xindoteknik_custom/views/sale_order.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index ea13c954..b160d9b1 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'), ('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"/>
@@ -62,7 +63,7 @@
<field name="item_percent_margin"/>
</xpath>
<xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_id']" position="before">
- <field name="line_no" readonly="1"/>
+ <field name="line_no" readonly="1" optional="hide"/>
</xpath>
<field name="amount_total" position="after">
<field name="grand_total"/>