diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-07-18 11:35:02 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-07-18 11:35:02 +0700 |
| commit | b839d55d39856031b6abfeb8f304b77b0fb145ce (patch) | |
| tree | 33ddef5a0822b25bba72d98b63148639f1588744 /indoteknik_custom/views/down_payment.xml | |
| parent | 2fe077d802bf143b110bc681ac039ba8bcfccb26 (diff) | |
(andri) add chatter & make realization form
Diffstat (limited to 'indoteknik_custom/views/down_payment.xml')
| -rw-r--r-- | indoteknik_custom/views/down_payment.xml | 45 |
1 files changed, 32 insertions, 13 deletions
diff --git a/indoteknik_custom/views/down_payment.xml b/indoteknik_custom/views/down_payment.xml index f418b932..3830154f 100644 --- a/indoteknik_custom/views/down_payment.xml +++ b/indoteknik_custom/views/down_payment.xml @@ -11,10 +11,14 @@ string="Realisasi" class="btn-primary" attrs="{}"/> + <button name="action_draft" + string="Reset to Draft" + attrs="{'invisible': [('status', '!=', 'reject')]}" + type="object"/> <button name="action_reject" type="object" string="Reject" - attrs="{}"/> + attrs="{'invisible': [('status', 'in', ['approved','reject'])]}"/> <button name="action_confirm_payment" type="object" string="Konfirmasi Pembayaran" @@ -34,11 +38,11 @@ </h1> <group col="2"> <group string=""> - <field name="applicant_name" colspan="2"/> - <field name="nominal" colspan="2"/> - <field name="bank_name" colspan="2"/> - <field name="account_name" colspan="2"/> - <field name="bank_account" colspan="2"/> + <field name="applicant_name" colspan="2" attrs="{'readonly': [('status', '=', 'approved')]}"/> + <field name="nominal" colspan="2" attrs="{'readonly': [('status', '=', 'approved')]}"/> + <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')]}"/> </group> <group string="" col="2"> @@ -46,13 +50,14 @@ <field name="departement_type"/> <field name="status_pay_down_payment" readonly="1"/> <field name="create_date" readonly="1"/> + <field name="detail_note" attrs="{'readonly': [('status', '=', 'approved')]}"/> </group> </group> - - <group string=""> - <field name="detail_note"/> - </group> </sheet> + <div class="oe_chatter"> + <field name="message_follower_ids" widget="mail_followers"/> + <field name="message_ids" widget="mail_thread"/> + </div> </form> </field> </record> @@ -66,8 +71,15 @@ <field name="applicant_name"/> <field name="nominal"/> <field name="departement_type" optional='hide'/> - <field name="status"/> - <field name="status_pay_down_payment"/> + <field name="status" + readonly="1" + decoration-success="status == 'approved'" + 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"/> </tree> </field> </record> @@ -78,7 +90,14 @@ <field name="view_mode">tree,form</field> </record> - <menuitem id="menu_down_payment" + <menuitem id="menu_down_payment_acct" + name="Pengajuan Uang Muka (Down Payment)" + parent="account.menu_finance_entries" + sequence="114" + action="action_down_payment" + /> + + <menuitem id="menu_down_payment_sales" name="Pengajuan Uang Muka (Down Payment)" parent="sale.product_menu_catalog" sequence="101" |
