summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-07-08 09:11:11 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-07-08 09:11:11 +0700
commit05879e52666f02c117aee569621556db97ef345c (patch)
tree0c5cb5443ce406d74d60bcf9bd87fb78ce58313b /indoteknik_custom/views
parent54633b0db570e5811874f78a9515065b9cb41ad8 (diff)
add statusbar and fix bug
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/approval_payment_term.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/indoteknik_custom/views/approval_payment_term.xml b/indoteknik_custom/views/approval_payment_term.xml
index 87c77385..44bd99f8 100644
--- a/indoteknik_custom/views/approval_payment_term.xml
+++ b/indoteknik_custom/views/approval_payment_term.xml
@@ -29,6 +29,14 @@
type="object"
attrs="{'invisible': [('approve_leader', '=', True)]}"
/>
+ <button name="button_reject"
+ string="Reject"
+ type="object"
+ attrs="{'invisible': [('approve_leader', '=', True)]}"
+ />
+ <field name="state" widget="statusbar"
+ statusbar_visible="waiting_approval,approved,rejected"
+ statusbar_colors='{"rejected":"red"}'/>
</header>
<sheet string="Approval Payment Term">
<group>
@@ -43,6 +51,7 @@
</group>
<group>
<field name="reason"/>
+ <field name="reason_reject" attrs="{'invisible': [('state', '!=', 'rejected')]}"/>
<field name="approve_date" readonly="1"/>
<field name="approve_sales_manager" readonly="1"/>
<field name="approve_finance" readonly="1"/>