mirror of
https://github.com/bringout/oca-ocb-mrp.git
synced 2026-04-26 19:32:03 +02:00
19.0 vanilla
This commit is contained in:
parent
accf5918df
commit
6e65e8c877
688 changed files with 225434 additions and 199401 deletions
|
|
@ -6,9 +6,11 @@
|
|||
<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" attrs="{'invisible': [('type', '!=', 'subcontract')], 'required': [('type', '=', 'subcontract')]}"/>
|
||||
<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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue