Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
32
sale_mrp_bom/views/sale_order.xml
Executable file
32
sale_mrp_bom/views/sale_order.xml
Executable file
@@ -0,0 +1,32 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user