summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-08-18 09:52:21 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-08-18 09:52:21 +0700
commit82920977dbae0534980c965360849702958d51e4 (patch)
treef753b61d5238dd9f530b960c8601e35db1bedab8
parente7c4b8161fde799cba05f371018315776539b479 (diff)
(andri) penyesuaian view
-rw-r--r--indoteknik_custom/views/down_payment.xml20
1 files changed, 12 insertions, 8 deletions
diff --git a/indoteknik_custom/views/down_payment.xml b/indoteknik_custom/views/down_payment.xml
index 754297b1..8fd8fc76 100644
--- a/indoteknik_custom/views/down_payment.xml
+++ b/indoteknik_custom/views/down_payment.xml
@@ -20,17 +20,20 @@
string="Reject"
class="btn-danger"
attrs="{'invisible': [('status', 'in', ['approved','reject','draft'])]}"/>
- <button name="action_confirm_payment"
- type="object"
- string="Konfirmasi Pembayaran"
- attrs="{'invisible': [('status', '=', 'reject')]}"/>
<button name="action_approval_check"
type="object"
string="Checking/Approval"
- attrs="{'invisible': [('status', '=', 'reject')]}"/>
+ class="btn-success"
+ attrs="{'invisible': [('status', 'in', ['approved','reject','draft'])]}"/>
+ <button name="action_confirm_payment"
+ type="object"
+ string="Konfirmasi Pembayaran"
+ class="btn-info"
+ attrs="{'invisible': ['|', ('status', '=', 'reject'), ('status_pay_down_payment', '=', 'payment')]}"/>
<button name="action_ap_only"
type="object"
string="AP Only"
+ class="btn-info"
attrs="{'invisible': [('status', '=', 'reject')]}"/>
<field name="status" widget="statusbar"
statusbar_visible="draft,pengajuan1,pengajuan2,pengajuan3,approved"
@@ -64,6 +67,7 @@
<field name="bank_name" colspan="2" attrs="{'readonly': [('status', '=', 'approved')]}"/>
<field name="account_name" colspan="2" attrs="{'readonly': [('status', '=', 'approved')]}"/>
<field name="bank_account" colspan="2" attrs="{'readonly': [('status', '=', 'approved')]}"/>
+ <field name="detail_note" attrs="{'readonly': [('status', '=', 'approved')]}"/>
<!-- <field name="move_id" readonly="1"/> -->
<hr/>
<field name="user_id" readonly="1"/>
@@ -79,7 +83,6 @@
<field name="estimated_return_date" readonly="1" widget="badge"/>
<field name="days_remaining" readonly="1" widget="badge"/>
<field name="approved_by" readonly="1"/>
- <field name="detail_note" attrs="{'readonly': [('status', '=', 'approved')]}"/>
<field name="reason_reject" attrs="{'invisible': [('status', '!=', 'reject')], 'readonly': True}"/>
</group>
@@ -116,17 +119,18 @@
<field name="applicant_name"/>
<field name="nominal"/>
<field name="departement_type" optional='hide'/>
- <field name="days_remaining" readonly="1" widget="badge"/>
<field name="status"
readonly="1"
decoration-success="status == 'approved'"
+ decoration-danger="status == 'reject'"
widget="badge" optional="show"/>
<field name="status_pay_down_payment"
readonly="1"
decoration-success="status_pay_down_payment == 'payment'"
decoration-danger="status_pay_down_payment == 'pending'"
widget="badge"/>
- <field name="estimated_return_date" optional="hide" widget="badge" />
+ <field name="days_remaining" readonly="1" widget="badge" optional="hide"/>
+ <field name="estimated_return_date" widget="badge" />
</tree>
</field>
</record>