summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-01-10 09:18:26 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-01-10 09:18:26 +0700
commite64e3a04ff6db3802779477398020738017b74b8 (patch)
tree2b0ee4057430d4eb36d3ae4bd49d25ae3dc1ef62 /indoteknik_custom/views
parentdfd4a1617d2c62b99d4bbcb6386b477874a33ebf (diff)
multiple delete on purchase order line
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index fff582b1..c7989eeb 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -23,6 +23,9 @@
<button name="indoteknik_custom.action_view_uangmuka_pembelian" string="UangMuka"
type="action" attrs="{'invisible': [('approval_status', '!=', 'approved')]}"/>
</button>
+ <button name="button_unlock" position="after">
+ <button name="delete_line" type="object" string="Delete " states="draft"/>
+ </button>
<field name="date_order" position="before">
<field name="sale_order_id" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/>
<field name="approval_status"/>
@@ -46,6 +49,7 @@
</field>
<field name="product_id" position="before">
<field name="line_no" attrs="{'readonly': 1}" optional="hide"/>
+ <field name="delete"/>
</field>
<field name="product_id" position="attributes">
<attribute name="options">{'no_create': True}</attribute>