summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-02-01 11:41:28 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-02-01 11:41:28 +0700
commit6f0b80656e318914d56d085f9b9e08ccd9838450 (patch)
tree1bdcebad107cba79fb32c85414c8d83717c686b0 /indoteknik_custom/views
parentfe086f5052ab5ba66c458ce25d50f7804c705211 (diff)
fix bug qty purchase and change request fiture delete line
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index 48443057..52e98787 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -52,12 +52,12 @@
</field>
<field name="product_id" position="before">
<field name="line_no" attrs="{'readonly': 1}" optional="hide"/>
- <field name="delete_line"/>
</field>
<field name="product_id" position="attributes">
<attribute name="options">{'no_create': True}</attribute>
</field>
<field name="product_qty" position="before">
+ <field name="is_edit_product_qty" readonly="1" optional="hide"/>
<field name="qty_onhand" readonly="1" optional="hide"/>
<field name="qty_incoming" readonly="1" optional="hide"/>
<field name="qty_outgoing" readonly="1" optional="hide"/>
@@ -102,7 +102,7 @@
</xpath>
<xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_qty']" position="attributes">
- <attribute name="attrs">{'readonly': [], 'required': True}</attribute>
+ <attribute name="attrs">{'readonly': [('is_edit_product_qty', '=', False)], 'required': True}</attribute>
</xpath>
<xpath expr="//form/sheet/notebook/page[@name='purchase_delivery_invoice']" position="before">