<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <!--产品模板list-->
        <record id="product_template_tree_view" model="ir.ui.view">
            <field name="name">product.template.product.tree</field>
            <field name="model">product.template</field>
            <field name="inherit_id" ref="product.product_template_tree_view"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='type']" position="before">
                    <field name="internal_type"/>
                </xpath>
            </field>
        </record>
        <!--产品Form-->
        <record id="product_template_form_view" model="ir.ui.view">
            <field name="name">product.template.common.form</field>
            <field name="model">product.template</field>
            <field name="inherit_id" ref="product.product_template_form_view"/>
            <field name="arch" type="xml">
                <xpath expr="//div[@name='options']" position="before">
                    <div>
                        <label for="internal_type"/>
                        <field name="internal_type"  options="{'no_create': True,'no_open': True}"/>
                    </div>
                </xpath>
            </field>
        </record>
    </data>
</openerp>
