summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/account_move_line.xml
diff options
context:
space:
mode:
authorHafidBuroiroh <hafidburoiroh09@gmail.com>2025-09-24 16:46:18 +0700
committerHafidBuroiroh <hafidburoiroh09@gmail.com>2025-09-24 16:46:18 +0700
commitfa4d124243688f4a74dd605a21b7b402ee632191 (patch)
tree4cec5c490d1035ea3ebe5a747cf752c3b0d13628 /indoteknik_custom/views/account_move_line.xml
parent5abefd1181a148c4caf9b5dd2082ee3b3e884751 (diff)
<hafid> refund
Diffstat (limited to 'indoteknik_custom/views/account_move_line.xml')
-rw-r--r--indoteknik_custom/views/account_move_line.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/indoteknik_custom/views/account_move_line.xml b/indoteknik_custom/views/account_move_line.xml
index 02b936f1..017a9eda 100644
--- a/indoteknik_custom/views/account_move_line.xml
+++ b/indoteknik_custom/views/account_move_line.xml
@@ -6,6 +6,9 @@
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
+ <xpath expr="//page[@id='aml_tab']/field[@name='line_ids']" position="attributes">
+ <attribute name="attrs">{'readonly': [('refund_id','!=',False)]}</attribute>
+ </xpath>
<xpath expr="//page[@id='aml_tab']/field[@name='line_ids']/tree/field[@name='currency_id']" position="before">
<field name="is_required" invisible="1"/>
</xpath>