summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-02-15 13:54:19 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-02-15 13:54:19 +0700
commit1a669bcdcf31dfa7f394450eb2afa27d20ab3d89 (patch)
treedc3ddf48ce5d214265f2fb70e36ebd638370dd21
parent65e92d876e08fb4dd1ade57e88025bcda7d2b901 (diff)
mandatory tax_Id
-rwxr-xr-xindoteknik_custom/views/sale_order.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index a8357573..4c4ac281 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -97,7 +97,7 @@
]
}
"/>
- <field name="purchase_tax_id" required="1" attrs="{'readonly': [('parent.approval_status', '!=', False)]}" domain="[('type_tax_use','=','purchase')]"/>
+ <field name="purchase_tax_id" attrs="{'readonly': [('parent.approval_status', '!=', False)]}" domain="[('type_tax_use','=','purchase')]"/>
<field name="item_percent_margin"/>
<field name="note" optional="hide"/>
<field name="note_procurement" optional="hide"/>
@@ -114,6 +114,9 @@
<xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_id']" position="attributes">
<attribute name="options">{'no_create': True}</attribute>
</xpath>
+ <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='tax_id']" position="attributes">
+ <attribute name="required">1</attribute>
+ </xpath>
<field name="amount_total" position="after">
<field name="grand_total"/>
<label for="amount_voucher_disc" string="Voucher" />