summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-19 14:42:31 +0700
committerFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-19 14:42:31 +0700
commit32d0c433ff990bde6f2839982b935cf809bde29d (patch)
tree1186f27bf9c481eb64b673dc55b457b61f6e49ba
parentc23a1c3c2873c9c1d06fa5dda28d11d20a075fdc (diff)
(andri) hide cancel PUM/reimburse jika pengajuan sudah dibayar
-rw-r--r--indoteknik_custom/views/advance_payment_request.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/views/advance_payment_request.xml b/indoteknik_custom/views/advance_payment_request.xml
index 8bbe6f82..cac40845 100644
--- a/indoteknik_custom/views/advance_payment_request.xml
+++ b/indoteknik_custom/views/advance_payment_request.xml
@@ -48,7 +48,7 @@
string="Cancel"
type="object"
class="btn-danger"
- attrs="{'invisible': [('status', 'in', ['draft', 'cancel'])]}"/>
+ attrs="{'invisible': ['|',('status', 'in', ['draft', 'cancel']), ('status_pay_down_payment', '=', 'payment')]}"/>
<field name="status" widget="statusbar"
statusbar_visible="draft,pengajuan1,pengajuan2,pengajuan3,approved"
statusbar_colors='{"reject":"red"}'