summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-06-16 11:36:00 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-06-16 11:36:00 +0700
commitfd63ff133764477f39c9dd32c5177dd67f293abb (patch)
treebc563f016e47f4570d39439b3ae95d56515c8dc4
parent2ef1e9e44ba6b8efa301dbe58c61352389aac55f (diff)
optional hide for line no in sale and purchase
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml2
-rwxr-xr-xindoteknik_custom/views/sale_order.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index a4c77c58..7a397ff6 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -43,7 +43,7 @@
<field name="total_so_percent_margin"/>
</field>
<field name="product_id" position="before">
- <field name="line_no" attrs="{'readonly': 1}"/>
+ <field name="line_no" attrs="{'readonly': 1}" optional="hide"/>
</field>
<field name="product_qty" position="before">
<field name="qty_available_store"/>
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index 53740dd5..94073fd7 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -63,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"/>