diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-07-19 15:11:31 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-07-19 15:11:31 +0700 |
| commit | 698e075cf3874d4eaf5ac3f44f4a5b1b1832b93c (patch) | |
| tree | 172a054173be40f39a85dfeadcdd78952eebdb41 /indoteknik_custom/views | |
| parent | 09c24278d60eb5bc5a92ad9b3f5389d329641228 (diff) | |
(andri) add widget for remaining & due date, add validasi confirm payment
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/down_payment.xml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/indoteknik_custom/views/down_payment.xml b/indoteknik_custom/views/down_payment.xml index 322b18f6..3c5f4f1f 100644 --- a/indoteknik_custom/views/down_payment.xml +++ b/indoteknik_custom/views/down_payment.xml @@ -46,10 +46,14 @@ <hr/> <field name="user_id" readonly="1"/> <field name="departement_type"/> - <field name="status_pay_down_payment" readonly="1"/> + <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="create_date" readonly="1"/> - <field name="estimated_return_date" readonly="1"/> - <field name="days_remaining" readonly="1"/> + <field name="estimated_return_date" readonly="1" widget="badge"/> + <field name="days_remaining" readonly="1" widget="badge"/> <field name="detail_note" attrs="{'readonly': [('status', '=', 'approved')]}"/> </group> @@ -62,7 +66,9 @@ <field name="attachment_file_image" filename="attachment_filename" widget="image" - attrs="{'invisible': [('attachment_type', '!=', 'image')]}"/> + attrs="{'invisible': [('attachment_type', '!=', 'image')]}" + style="max-width:250px; max-height:250px; object-fit:contain;"/> + <br/> </group> </group> @@ -84,7 +90,7 @@ <field name="applicant_name"/> <field name="nominal"/> <field name="departement_type" optional='hide'/> - <field name="days_remaining" readonly="1"/> + <field name="days_remaining" readonly="1" widget="badge"/> <field name="status" readonly="1" decoration-success="status == 'approved'" @@ -94,7 +100,7 @@ decoration-success="status_pay_down_payment == 'payment'" decoration-danger="status_pay_down_payment == 'pending'" widget="badge"/> - <field name="estimated_return_date" optional="hide"/> + <field name="estimated_return_date" optional="hide" widget="badge" /> </tree> </field> </record> |
