[IMP] mrp_production_hierarchy: Only display root and parent production orders on the form if they exist

This commit is contained in:
sebalix
2018-05-18 17:51:34 +02:00
parent 1d0283bfa9
commit 9f145b5e03

View File

@@ -14,8 +14,8 @@
attrs="{'invisible': [('child_ids', '=', [])]}"/>
</div>
<field name="origin" position="after">
<field name="root_id"/>
<field name="parent_id"/>
<field name="root_id" attrs="{'invisible': [('root_id', '=', False)]}"/>
<field name="parent_id" attrs="{'invisible': [('parent_id', '=', False)]}"/>
</field>
</field>
</record>