summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/purchase_order.xml
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-11-28 10:43:58 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-11-28 10:43:58 +0700
commitb1af79a0ed73a7af2557c8269d82bbc99afaa601 (patch)
tree6bf2ef8aec570bcb05b59a504ebeece215383845 /indoteknik_custom/views/purchase_order.xml
parent56f2deda9cdf2a51d5a53aade7758a0ac9313e05 (diff)
parent58bec36c52b223c12fd15511a56ab417ebbd7257 (diff)
Merge branch 'production' into iman/switch-account
# Conflicts: # indoteknik_api/models/res_users.py
Diffstat (limited to 'indoteknik_custom/views/purchase_order.xml')
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index 3e609f15..0e6b6792 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -27,7 +27,11 @@
<button name="delete_line" type="object" string="Delete " states="draft"/>
</button>
<button name="button_unlock" position="after">
- <button name="create_bill_dp" string="Create Bill DP" type="object" class="oe_highlight" attrs="{'invisible': [('state', 'not in', ('purchase', 'done'))]}"/>
+ <button name="create_bill_dp" string="Create Bill DP" type="object" class="oe_highlight" attrs="{'invisible': [('state', 'not in', ('purchase', 'done')), ('bills_pelunasan_id', '!=', False)]}"/>
+ </button>
+ <button name="button_unlock" position="after">
+ <button name="create_bill_pelunasan" string="Create Bill Pelunasan" type="object" class="oe_highlight" attrs="{'invisible': [('state', 'not in', ('purchase', 'done')), ('bills_pelunasan_id', '!=', False)]}"/>
+
</button>
<field name="date_order" position="before">
<field name="sale_order_id" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/>
@@ -100,6 +104,7 @@
<field name="approval_edit_line"/>
<field name="logbook_bill_id"/>
<field name="bills_dp_id" readonly="1"/>
+ <field name="bills_pelunasan_id" readonly="1"/>
</field>
<field name="order_line" position="attributes">
@@ -207,7 +212,6 @@
<field name="code">model.procure_calculation()</field>
<field name="state">code</field>
<field name="priority">75</field>
- <field name="active">True</field>
</record>
</data>
<data>