summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-03-27 16:20:05 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-03-27 16:20:05 +0700
commitb105f669873645f29314be55aac45d95d0556970 (patch)
treeba934dfaaf3e3adba0f42598c432cddd6ee1fa98 /indoteknik_custom/views
parent1e3da858c3d924a8fc61c83115ffce654198b10b (diff)
fix bug
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/mrp_production.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/views/mrp_production.xml b/indoteknik_custom/views/mrp_production.xml
index ffbc8659..f8278f39 100644
--- a/indoteknik_custom/views/mrp_production.xml
+++ b/indoteknik_custom/views/mrp_production.xml
@@ -6,11 +6,12 @@
<field name="inherit_id" ref="mrp.mrp_production_form_view" />
<field name="arch" type="xml">
<button name="button_mark_done" position="after">
- <button name="create_po_from_manufacturing" type="object" string="Create PO" class="oe_highlight" attrs="{'invisible': [('state', '!=', 'confirmed')]}"/>
+ <button name="create_po_from_manufacturing" type="object" string="Create PO" class="oe_highlight" attrs="{'invisible': ['|', ('state', '!=', 'confirmed'), ('is_po', '=', True)]}"/>
</button>
<field name="bom_id" position="after">
<field name="desc"/>
<field name="sale_order"/>
+ <field name="is_po"/>
</field>
<xpath expr="//form/sheet/notebook/page/field[@name='move_raw_ids']/tree/field[@name='product_uom_qty']" position="before">
<field name="vendor_id"/>