summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-05-20 07:04:25 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-05-20 07:04:25 +0000
commit209cfed90c1306a31a32b05eb1b3365e5a9b04e8 (patch)
tree7d09fd1bf0d4431cb1be5e8c9c513951c40e68bd /indoteknik_custom/views
parent68378dd2fb8d61b282a672ca0f09033d15d82283 (diff)
parentaccaff72daae402924f89c2347b57b75901f542b (diff)
Merged in bug_sales_payment (pull request #308)
<miqdad> Bug sales payment term
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/sale_order.xml15
1 files changed, 8 insertions, 7 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index a599a7b8..ad6bc11c 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -96,11 +96,11 @@
<attribute name="invisible">1</attribute>
</field>
<field name="user_id" position="after">
- <field name="hold_outgoing" readonly="1" />
- <field name="date_hold" readonly="1" widget="datetime" />
- <field name="date_unhold" readonly="1" widget="datetime" />
- <field name="helper_by_id" readonly="1" />
- <field name="compute_fullfillment" invisible="1" />
+ <field name="hold_outgoing" readonly="1"/>
+ <field name="date_hold" readonly="1" widget="datetime"/>
+ <field name="date_unhold" readonly="1" widget="datetime"/>
+ <field name="helper_by_id" readonly="1"/>
+ <field name="compute_fullfillment" invisible="1"/>
</field>
<field name="tag_ids" position="after">
<field name="eta_date_start"/>
@@ -303,8 +303,9 @@
</field>
<field name="payment_term_id" position="attributes">
<attribute name="attrs">
- {'readonly': [('approval_status', '=', 'approved'), ('state', 'not in',
- ['cancel', 'draft'])]}
+ {'readonly': ['|', ('approval_status', 'in', ['pengajuan1', 'pengajuan2', 'approved']),
+ ('state', 'not in',
+ ['cancel', 'draft'])]}
</attribute>
</field>