diff options
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 52dd64c..d5ae9ae 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> <button name="open_reconcile_view" position="after"> @@ -48,6 +70,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')]}"/> |
