summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/sale_order.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index ae16f649..9ff000e7 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -58,7 +58,8 @@
</xpath>
<field name="source_id" position="attributes">
<attribute name="domain">[('id', 'in', [32, 59, 60, 61])]</attribute>
- <attribute name="required">1</attribute>
+ <attribute name="attrs">{'required':['|',('create_date', '&gt;', '2023-07-30'), ('create_date', '=', False)]}
+ </attribute>
</field>
<xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_total']" position="after">
<field name="vendor_id" attrs="{'readonly': [('parent.approval_status', '=', 'approved')]}"/>