summaryrefslogtreecommitdiff
path: root/fixco_custom/views/account_move.xml
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-11-26 10:08:16 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-11-26 10:08:16 +0700
commit25edffb8ebf51e4b133132f4fbd49363b1426664 (patch)
tree903a73bef338d0ddd1bed8577b276b318f37cc56 /fixco_custom/views/account_move.xml
parent29d10b8de8422a7c2ced1816d7cc7df41c20b73c (diff)
api altama
Diffstat (limited to 'fixco_custom/views/account_move.xml')
-rw-r--r--fixco_custom/views/account_move.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml
index 3b122dd..8eb7975 100644
--- a/fixco_custom/views/account_move.xml
+++ b/fixco_custom/views/account_move.xml
@@ -57,6 +57,7 @@
<!-- ✅ Add the new Many2many field after invoice_vendor_bill_id -->
<field name="invoice_vendor_bill_id" position="after">
<field name="purchase_id" invisible="1"/>
+ <field name="need_refund" invisible="1"/>
<label for="purchase_vendor_bill_ids" string="Auto-Complete" class="oe_edit_only"
attrs="{'invisible': ['|', ('state','!=','draft'), ('move_type', '!=', 'in_invoice')]}" />
@@ -116,6 +117,20 @@
</field>
</record>
+ <record id="view_move_tree_inherit_need_refund" model="ir.ui.view">
+ <field name="name">account.move.tree.need.refund</field>
+ <field name="model">account.move</field>
+ <field name="inherit_id" ref="account.view_invoice_tree"/>
+ <field name="arch" type="xml">
+ <xpath expr="//tree" position="attributes">
+ <attribute name="decoration-danger">need_refund</attribute>
+ </xpath>
+ <xpath expr="//tree" position="inside">
+ <field name="need_refund" invisible="1"/>
+ </xpath>
+ </field>
+ </record>
+
<record id="action_export_faktur" model="ir.actions.server">
<field name="name">Export Faktur ke XML</field>
<field name="model_id" ref="account.model_account_move" />