Source

trytond-product_price_list_category / price_list.xml

Full commit
<?xml version="1.0"?>
<!-- This file is part product_price_list_category 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="price_list_line_view_form">
            <field name="model">product.price_list.line</field>
            <field name="inherit" ref="product_price_list.price_list_line_view_form"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath
                        expr="/form/label[@name='product']"
                        position="before">
                            <label name="category"/>
                            <field name="category"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="price_list_line_view_tree">
            <field name="model">product.price_list.line</field>
            <field name="inherit" ref="product_price_list.price_list_line_view_tree"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath
                        expr="/tree/field[@name='product']"
                        position="before">
                            <field name="category"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="price_list_line_view_tree_sequence">
            <field name="model">product.price_list.line</field>
            <field name="inherit" ref="product_price_list.price_list_line_view_tree_sequence"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath
                        expr="/tree/field[@name='product']"
                        position="before">
                            <field name="category"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>
    </data>
</tryton>