diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-01-09 14:53:34 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-01-09 14:53:34 +0700 |
| commit | 57dee69f10404610c9b2cac8268f78ebd92a9b19 (patch) | |
| tree | a5280fb2f04cee2c4359943cb2282999ba666fe1 /fixco_custom/views/account_move.xml | |
| parent | f0fdef1687cf29adb42fbb10512820088d8a9953 (diff) | |
| parent | 82c1232c08894dad3d6e326649785b5669a12077 (diff) | |
Merge branch 'main' of https://bitbucket.org/altafixco/fixco-addons into bills_add_item_po
Diffstat (limited to 'fixco_custom/views/account_move.xml')
| -rw-r--r-- | fixco_custom/views/account_move.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml index 8d8e4a3..abcb9fd 100644 --- a/fixco_custom/views/account_move.xml +++ b/fixco_custom/views/account_move.xml @@ -10,6 +10,28 @@ <button name="action_post" position="after"> <button name="fixco_custom.action_view_invoice_reklas" string="Reklas" type="action" class="btn-primary" attrs="{'invisible': [('state', '!=', 'posted')]}"/> + <button name="pending_refund" + string="Pengajuan Refund" + type="object" + class="btn-primary" + attrs="{'invisible': [ + '|', + ('move_type', '!=', 'entry'), + '|', + ('state', '!=', 'posted'), + ('approval_refund', 'in', ('pending','approved','rejected')) + ]}"/> + + <button name="reject_refund" string="Tolak Pengajuan Refund" + type="object" class="btn-primary" attrs="{'invisible': [ + '|', + ('move_type', '!=', 'entry'), + '|', + ('state', '!=', 'posted'), + ('approval_refund', 'in', ('approved','rejected')) + ]}"/> + <!-- <button name="approve_refund" string="Approved Pengajuan Refund" + type="object" class="btn-primary" attrs="{'invisible': [('state', '!=', 'posted'), ('move_type', '!=', 'entry'), ('approval_refund', 'in', ('approved','rejected'))]}"/> --> </button> <xpath expr="//header" position="inside"> <button name="action_open_po_item_wizard" @@ -56,6 +78,7 @@ <field name="reklas_used_by" readonly="1" attrs="{'invisible': [('move_type', '!=', 'entry')]}"/> </field> <field name="invoice_date" position="after"> + <field name="approval_refund" readonly="1" attrs="{'invisible': [('move_type', 'not in', ('entry'))]}"/> <field name="sale_id" readonly="1" attrs="{'invisible': [('move_type', 'not in', ('out_invoice','entry'))]}"/> <field name="purchase_order_id" readonly="1" attrs="{'invisible': [('move_type', 'not in', ('in_invoice','entry'))]}"/> <field name="picking_id" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/> |
