Files
tryton/product.xml
T

68 lines
2.5 KiB
XML

<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="product-bom_view_list">
<field name="model">product.product-production.bom</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Product - BOMs">
<field name="product"/>
<field name="bom"/>
</tree>
]]>
</field>
</record>
<record model="ir.ui.view" id="product-bom_view_list_sequence">
<field name="model">product.product-production.bom</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Product - BOMs" sequence="sequence">
<field name="bom"/>
<field name="sequence" tree_invisible="1"/>
</tree>
]]>
</field>
</record>
<record model="ir.ui.view" id="product-bom_view_form">
<field name="model">product.product-production.bom</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Product - BOM" col="6">
<label name="product"/>
<field name="product"/>
<label name="bom"/>
<field name="bom" widget="selection"/>
<label name="sequence"/>
<field name="sequence"/>
</form>
]]>
</field>
</record>
<record model="ir.ui.view" id="product_view_form">
<field name="model">product.product</field>
<field name="inherit" ref="product.product_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/form/notebook/page[@id=&quot;general&quot;]"
position="after">
<page name="boms">
<field name="boms" colspan="4"
view_ids="production.product-bom_view_list_sequence"/>
</page>
</xpath>
</data>
]]>
</field>
</record>
</data>
</tryton>