summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-08-04 14:41:27 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-08-04 14:41:27 +0700
commit747075fb85372666b89d5ffd07a43664ecf169e1 (patch)
tree9b5e1e4a4c0cb03102f77abe763cf6b811ae2f0a /indoteknik_custom/views
parentc4e1c36e28e4e9585f58e28326d1b0889eb1fa1f (diff)
<hafid> Fix problem
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/ir_sequence.xml2
-rw-r--r--indoteknik_custom/views/refund_sale_order.xml10
2 files changed, 6 insertions, 6 deletions
diff --git a/indoteknik_custom/views/ir_sequence.xml b/indoteknik_custom/views/ir_sequence.xml
index 4915e4c5..94c2cd07 100644
--- a/indoteknik_custom/views/ir_sequence.xml
+++ b/indoteknik_custom/views/ir_sequence.xml
@@ -220,7 +220,7 @@
</record>
<record id="seq_refund_sale_order" model="ir.sequence">
- <field name="name">Refund Sale Order</field>
+ <field name="name">Refund Sales Order</field>
<field name="code">refund.sale.order</field>
<field name="prefix">RC/%(year)s/%(month)s/</field>
<field name="padding">4</field>
diff --git a/indoteknik_custom/views/refund_sale_order.xml b/indoteknik_custom/views/refund_sale_order.xml
index e35e76b3..27c5feec 100644
--- a/indoteknik_custom/views/refund_sale_order.xml
+++ b/indoteknik_custom/views/refund_sale_order.xml
@@ -56,7 +56,7 @@
<button name="action_trigger_cancel"
type="object"
string="Cancel"
- attrs="{'invisible': ['|', ('status_payment', '!=', 'pending'), ('status', '=', 'reject')]}" />
+ attrs="{'invisible': ['|', ('status_payment', '!=', 'pending'), ('status', 'in', ['reject', 'refund'])]}" />
<button name="action_confirm_refund"
type="object"
string="Confirm Payment"
@@ -66,7 +66,7 @@
string="AP Only"
type="object"
class="oe_highlight"
- attrs="{'invisible': ['|', ('journal_refund_state', '=', 'posted'), ('status', 'not in', ['pengajuan3','refund'])]}"/>
+ attrs="{'invisible': ['|', ('journal_refund_state', 'in', ['posted', 'draft']), ('status', 'not in', ['pengajuan3','refund'])]}"/>
<field name="status"
widget="statusbar"
@@ -85,7 +85,7 @@
class="oe_stat_button"
icon="fa-book"
width="250px"
- attrs="{'invisible': ['|', ('journal_refund_move_id', '=', False), ('journal_refund_state', '!=', 'posted')]}">
+ attrs="{'invisible': [('journal_refund_move_id', '=', False)]}">
<field name="journal_refund_move_id" string="Journal Refund" widget="statinfo"/>
</button>
</div>
@@ -163,8 +163,8 @@
</group>
<group>
<field name="bukti_refund_type" reqiured="1" attrs="{'readonly': [('is_locked', '=', True)]}"/>
- <field name="bukti_transfer_refund_pdf" widget="pdf_viewer" attrs="{'invisible': [('bukti_refund_type', '=', 'image')]}"/>
- <field name="bukti_transfer_refund_image" widget="image" attrs="{'invisible': [('bukti_refund_type', '=', 'pdf')]}"/>
+ <field name="bukti_transfer_refund_pdf" widget="pdf_viewer" attrs="{'invisible': [('bukti_refund_type', '=', 'image')], 'readonly': [('is_locked', '=', True)]}"/>
+ <field name="bukti_transfer_refund_image" widget="image" attrs="{'invisible': [('bukti_refund_type', '=', 'pdf')], 'readonly': [('is_locked', '=', True)]}"/>
</group>
</group>
</page>