summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-05-20 14:38:49 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-05-20 14:38:49 +0700
commit9c59172b0e5b3829dbd7ad156ed4a98a87d75aed (patch)
tree7d09fd1bf0d4431cb1be5e8c9c513951c40e68bd /indoteknik_custom/views
parent89f0377dd6e8143092d47ea4e3cdeff42a3b49e8 (diff)
parent209cfed90c1306a31a32b05eb1b3365e5a9b04e8 (diff)
Merge branch 'odoo-backup' of bitbucket.org:altafixco/indoteknik-addons into odoo-backup
# Conflicts: # indoteknik_custom/models/stock_picking.py
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>