summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/mrp_production.xml
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-03-27 14:39:56 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-03-27 14:39:56 +0700
commit1e3da858c3d924a8fc61c83115ffce654198b10b (patch)
tree626df0a75225be2a8095fa1a564f88c1e5b17e3f /indoteknik_custom/views/mrp_production.xml
parenta9eed02ec4f14c368fc98accd25ae8acdc67323b (diff)
parente926482af5f2b95ff465445215c77161223ee671 (diff)
Merge branch 'dev/po-mo' into odoo-backup
# Conflicts: # indoteknik_custom/models/mrp_production.py
Diffstat (limited to 'indoteknik_custom/views/mrp_production.xml')
-rw-r--r--indoteknik_custom/views/mrp_production.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/indoteknik_custom/views/mrp_production.xml b/indoteknik_custom/views/mrp_production.xml
index 95f419f6..ffbc8659 100644
--- a/indoteknik_custom/views/mrp_production.xml
+++ b/indoteknik_custom/views/mrp_production.xml
@@ -5,10 +5,21 @@
<field name="model">mrp.production</field>
<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>
<field name="bom_id" position="after">
<field name="desc"/>
<field name="sale_order"/>
</field>
+ <xpath expr="//form/sheet/notebook/page/field[@name='move_raw_ids']/tree/field[@name='product_uom_qty']" position="before">
+ <field name="vendor_id"/>
+ </xpath>
+ <xpath expr="//form/sheet/notebook/page[@name='miscellaneous']" position="after">
+ <page string="Purchase Match" name="purchase_order_lines_indent">
+ <field name="production_purchase_match"/>
+ </page>
+ </xpath>
</field>
</record>
@@ -23,4 +34,16 @@
</field>
</field>
</record>
+
+ <record id="production_purchase_match_tree" model="ir.ui.view">
+ <field name="name">production.purchase.match.tree</field>
+ <field name="model">production.purchase.match</field>
+ <field name="arch" type="xml">
+ <tree>
+ <field name="order_id" readonly="1"/>
+ <field name="vendor" readonly="1"/>
+ <field name="total" readonly="1"/>
+ </tree>
+ </field>
+ </record>
</odoo>