summaryrefslogtreecommitdiff
path: root/fixco_custom/views
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-01-09 14:53:34 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-01-09 14:53:34 +0700
commit57dee69f10404610c9b2cac8268f78ebd92a9b19 (patch)
treea5280fb2f04cee2c4359943cb2282999ba666fe1 /fixco_custom/views
parentf0fdef1687cf29adb42fbb10512820088d8a9953 (diff)
parent82c1232c08894dad3d6e326649785b5669a12077 (diff)
Merge branch 'main' of https://bitbucket.org/altafixco/fixco-addons into bills_add_item_po
Diffstat (limited to 'fixco_custom/views')
-rw-r--r--fixco_custom/views/account_move.xml23
-rwxr-xr-xfixco_custom/views/sale_order.xml2
2 files changed, 25 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')]}"/>
diff --git a/fixco_custom/views/sale_order.xml b/fixco_custom/views/sale_order.xml
index 9f6e649..b29bcb9 100755
--- a/fixco_custom/views/sale_order.xml
+++ b/fixco_custom/views/sale_order.xml
@@ -39,6 +39,7 @@
<field name="channel" attrs="{'required': [('source', '!=', 'manual')]}"/>
<field name="note_by_buyer" readonly="1"/>
<field name="source" readonly="1"/>
+ <field name="deadline_date"/>
</field>
<field name="amount_total" position="after">
<field name="remaining_down_payment"/>
@@ -58,6 +59,7 @@
<field name="order_reference" optional="hide"/>
<field name="invoice_mp" optional="hide"/>
<field name="source" optional="hide"/>
+ <field name="deadline_date" optional="hide"/>
</field>
</field>
</record>