Source

trytond-product_manufacturer / purchase.xml

Full commit
<?xml version="1.0"?>
<!-- This file is part product_manufacturer module for 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="purchase_line_view_form">
            <field name="model">purchase.line</field>
            <field name="inherit" ref="purchase.purchase_line_view_form"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath
                        expr="/form/notebook/page[@id=&quot;general&quot;]/field[@name=&quot;product&quot;]"
                        position="after">
                        <label name="manufacturer"/>
                        <field name="manufacturer" xexpand="0" width="25"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="purchase_line_view_tree_sequence">
            <field name="model">purchase.line</field>
            <field name="inherit" ref="purchase.purchase_line_view_tree_sequence"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath expr="/tree/field[@name=&quot;product&quot;]" 
                        position="after">
                        <field name="manufacturer"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>

    </data>
</tryton>