diff options
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/refund_sale_order.xml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/indoteknik_custom/views/refund_sale_order.xml b/indoteknik_custom/views/refund_sale_order.xml index 3c60cc57..a2538f42 100644 --- a/indoteknik_custom/views/refund_sale_order.xml +++ b/indoteknik_custom/views/refund_sale_order.xml @@ -68,6 +68,11 @@ type="object" class="oe_highlight" attrs="{'invisible': ['|', ('journal_refund_state', 'in', ['posted', 'draft']), ('status', 'not in', ['pengajuan3','refund'])]}"/> + <button name="action_create_tukar_guling" + string="Create Return" + type="object" + class="oe_highlight" + attrs="{'invisible': [('refund_type', 'not in', ['retur_half', 'retur'])]}"/> <field name="status" widget="statusbar" @@ -81,7 +86,7 @@ </header> <xpath expr="//sheet" position="inside"> <field name="show_return_alert" invisible="1"/> - <div class="alert alert-info" role="alert" + <div class="alert alert-danger" role="alert" attrs="{'invisible': [('show_return_alert', '=', False)]}"> ⚠️ SO belum melakukan retur barang. Silakan buat pengajuan retur. </div> @@ -96,6 +101,13 @@ attrs="{'invisible': [('journal_refund_move_id', '=', False)]}"> <field name="journal_refund_move_id" string="Journal Refund" widget="statinfo"/> </button> + <button name="action_open_tukar_guling" + type="object" + class="oe_stat_button" + icon="fa-refresh" + attrs="{'invisible': ['|', ('refund_type', 'not in', ['retur', 'retur_half']), ('tukar_guling_count', '=', 0)]}"> + <field name="tukar_guling_count" string="Pengajuan Return SO" widget="statinfo"/> + </button> </div> <widget name="web_ribbon" title="PAID" @@ -131,6 +143,7 @@ <field name="amount_refund" attrs="{'readonly': [('is_locked', '=', True)]}"/> <field name="amount_refund_text" readonly="1"/> <field name="sale_order_count" invisible="1"/> + <field name="tukar_guling_ids" invisible="1"/> <field name="remaining_refundable" readonly="1" attrs="{'invisible': [('sale_order_count', '>', 1)]}"/> <field name="uang_masuk_type" required="1" attrs="{'readonly': [('is_locked', '=', True)]}"/> <field name="bukti_uang_masuk_image" widget="image" @@ -144,7 +157,7 @@ <page string="Produk Line"> <field name="line_ids" attrs="{'readonly': [('is_locked', '=', True)]}"> <tree editable="bottom" create="0" delete="1"> - <field name="product_from"/> + <field name="ref_id"/> <field name="product_id"/> <field name="quantity"/> <field name="reason"/> |
