Files
Odoo-18.0-20251222/sale_mrp_bom/views/sale_order.xml
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

33 lines
1.3 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="sale_order_form" model="ir.ui.view">
<field name="name">sale_mrp_bom.sale.order.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<xpath
expr="//field[@name='order_line']//list//field[@name='name']"
position="after"
>
<field
name="bom_id"
groups="sale_mrp_bom.sale_mrp_bom_group"
optional="show"
context="{'default_product_id': product_id, 'default_product_tmpl_id': product_template_id}"
/>
</xpath>
<xpath
expr="//field[@name='order_line']//form//field[@name='customer_lead']"
position="after"
>
<field name="product_template_id" invisible="1" />
<field
name="bom_id"
groups="sale_mrp_bom.sale_mrp_bom_group"
context="{'default_product_id': product_id, 'default_product_tmpl_id': product_template_id}"
/>
</xpath>
</field>
</record>
</odoo>