summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/sale_order.xml
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views/sale_order.xml')
-rwxr-xr-xindoteknik_custom/views/sale_order.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index 85f687c1..70e3392f 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -27,6 +27,12 @@
<field name="fee_third_party"/>
<field name="total_percent_margin"/>
</field>
+ <field name="analytic_account_id" position="after">
+ <field name="customer_type" attrs="{'required': ['|', ('create_date', '&gt;', '2023-06-28'), ('create_date', '=', False)]}"/>
+ <field name="npwp" placeholder='99.999.999.9-999.999' attrs="{'required': ['|', ('create_date', '&gt;', '2023-06-28'), ('create_date', '=', False)]}"/>
+ <field name="sppkp" attrs="{'invisible': [('customer_type','!=','pkp')], 'required': [('customer_type', '=', 'pkp')]}"/>
+ <field name="due_id" readonly="1"/>
+ </field>
<field name="partner_shipping_id" position="after">
<field name="real_shipping_id"/>
<field name="approval_status" />
@@ -63,6 +69,7 @@
<field name="purchase_tax_id" attrs="{'readonly': [('parent.approval_status', '!=', False)]}" domain="[('type_tax_use','=','purchase')]"/>
<field name="item_percent_margin"/>
<field name="note_procurement" optional="hide"/>
+ <field name="vendor_subtotal" optional="hide"/>
</xpath>
<xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_id']" position="before">
<field name="line_no" readonly="1" optional="hide"/>