mirror of
https://github.com/bringout/oca-ocb-mrp.git
synced 2026-04-23 17:32:08 +02:00
16 lines
766 B
XML
16 lines
766 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="mrp_bom_form_view" model="ir.ui.view">
|
|
<field name="name">mrp.bom.form.view</field>
|
|
<field name="model">mrp.bom</field>
|
|
<field name="inherit_id" ref="mrp.mrp_bom_form_view" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='type']" position="after">
|
|
<field name="subcontractor_ids" widget="many2many_tags" invisible="type != 'subcontract'" required="type == 'subcontract'"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='consumption']" position="attributes">
|
|
<attribute name="invisible">type == 'phantom' or type == 'subcontract'</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|