diff options
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/refund_sale_order.xml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indoteknik_custom/views/refund_sale_order.xml b/indoteknik_custom/views/refund_sale_order.xml index dd47c2ab..3c60cc57 100644 --- a/indoteknik_custom/views/refund_sale_order.xml +++ b/indoteknik_custom/views/refund_sale_order.xml @@ -79,6 +79,13 @@ statusbar_visible="draft,pengajuan1,pengajuan2,pengajuan3,refund" attrs="{'invisible': [('status', '=', 'reject')]}" /> </header> + <xpath expr="//sheet" position="inside"> + <field name="show_return_alert" invisible="1"/> + <div class="alert alert-info" role="alert" + attrs="{'invisible': [('show_return_alert', '=', False)]}"> + ⚠️ SO belum melakukan retur barang. Silakan buat pengajuan retur. + </div> + </xpath> <sheet> <div class="oe_button_box" name="button_box"> <button name="action_open_journal_refund" @@ -118,7 +125,7 @@ <field name="note_refund" attrs="{'readonly': [('is_locked', '=', True)]}"/> </group> <group> - <field name="uang_masuk" readonly="1"/> + <field name="uang_masuk" attrs="{'readonly': [('refund_type', '!=', 'salah_transfer')]}"/> <field name="total_invoice" readonly="1"/> <field name="ongkir" attrs="{'readonly': [('is_locked', '=', True)]}"/> <field name="amount_refund" attrs="{'readonly': [('is_locked', '=', True)]}"/> |
