<commit_before><?xml version="1.0"?>
<openerp>
<data>
    <record model="ir.ui.view" id="view_purchase_order_form_note">
        <field name="name">Extra fields</field>
        <field name="model">purchase.order</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="purchase.purchase_order_form" />
        <field name="arch" type="xml">
            <field name="location_id" position="after">
               <field name="delivery_note" />
            </field>
            <field name="fiscal_position" position="after">
               <field name="payment_note" />                
            </field>
        </field>
    </record>
    
    <record id='product_product_form_view_extra_fields' model='ir.ui.view'>
        <field name='name'>Product pack</field>
        <field name='model'>product.product</field>
        <!--<field name="inherit_id" ref="product.product_template_form_view" />-->
        <field name="inherit_id" ref="product.product_normal_form_view" />
        <field name='arch' type='xml'>
           <!--<field name='mes_type' position="after">   
                <field name='quantity_x_pack' />
           </field>-->
           <field name='default_code' position="after">   
                <group colspan="4" col="2">
                    <newline />
                    <separator string="Imballo default" colspan="2"/>
                    <field name="package_type" />
                    <field name='pack_l' />
                    <field name='pack_h' />
                    <field name='pack_p' />
                    <field name='colls' />
               <!--</field>             
               <field name='seller_ids' position="before">-->
                    <separator string="Info fornitura" colspan="2"/>
                   <field name="default_supplier" />
                   <field name="default_supplier_code" />
                    <separator string="Extra info" colspan="2"/>
                    <field name='colour_code' />
               </group>
           </field>
       </field>
    </record>   
    
    <record model="ir.ui.view" id="view_purchase_order_form_extra">
        <field name="name">purchase.order</field>
        <field name="model">purchase.order</field>
        <field name="inherit_id" ref="purchase.purchase_order_form" />
        <field name="arch" type="xml">
            <xpath expr="/form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_qty']" position="after">
               <field name="q_x_pack" readonly="1"/>
            </xpath>
        </field>
    </record>

    <record model="ir.ui.view" id="view_purchase_order_line_form_extra">
        <field name="name">purchase.order.line</field>
        <field name="model">purchase.order.line</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="purchase.purchase_order_line_form" />
        <field name="arch" type="xml">
            <xpath expr="/form/sheet/notebook/page/field[@name='name']" position="after">
               <field name="q_x_pack" readonly="1" />
               <field name="colour" readonly="1" />
            </xpath>
        </field>
    </record>

    <record id='product_product_tree_view_extra_fields' model='ir.ui.view'>
        <field name='name'>Extra product tree field</field>
        <field name='model'>product.product</field>
        <field name="inherit_id" ref="product.product_product_tree_view"/>
        <field name='arch' type='xml'>
           <field name='state' position="before">
                <field name='first_supplier_id' />
           </field>     
        </field>
    </record>
    
</data>
</openerp>

<commit_msg>add first supplier also in form<commit_after><?xml version="1.0"?>
<openerp>
<data>
    <record model="ir.ui.view" id="view_purchase_order_form_note">
        <field name="name">Extra fields</field>
        <field name="model">purchase.order</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="purchase.purchase_order_form" />
        <field name="arch" type="xml">
            <field name="location_id" position="after">
               <field name="delivery_note" />
            </field>
            <field name="fiscal_position" position="after">
               <field name="payment_note" />                
            </field>
        </field>
    </record>
    
    <record id='product_product_form_view_extra_fields' model='ir.ui.view'>
        <field name='name'>Product pack</field>
        <field name='model'>product.product</field>
        <!--<field name="inherit_id" ref="product.product_template_form_view" />-->
        <field name="inherit_id" ref="product.product_normal_form_view" />
        <field name='arch' type='xml'>
           <!--<field name='mes_type' position="after">   
                <field name='quantity_x_pack' />
           </field>-->
           <field name='default_code' position="after">   
                <group colspan="4" col="2">
                    <newline />
                    <separator string="Imballo default" colspan="2"/>
                    <field name="package_type" />
                    <field name='pack_l' />
                    <field name='pack_h' />
                    <field name='pack_p' />
                    <field name='colls' />
               <!--</field>             
               <field name='seller_ids' position="before">-->
                    <separator string="Info fornitura" colspan="2"/>
                   <field name="default_supplier" />
                   <field name="default_supplier_code" />
                    <separator string="Extra info" colspan="2"/>
                    <field name='colour_code' />
               </group>
           </field>
       </field>
    </record>   
    
    <record model="ir.ui.view" id="view_purchase_order_form_extra">
        <field name="name">purchase.order</field>
        <field name="model">purchase.order</field>
        <field name="inherit_id" ref="purchase.purchase_order_form" />
        <field name="arch" type="xml">
            <xpath expr="/form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_qty']" position="after">
               <field name="q_x_pack" readonly="1"/>
            </xpath>
        </field>
    </record>

    <record model="ir.ui.view" id="view_purchase_order_line_form_extra">
        <field name="name">purchase.order.line</field>
        <field name="model">purchase.order.line</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="purchase.purchase_order_line_form" />
        <field name="arch" type="xml">
            <xpath expr="/form/sheet/notebook/page/field[@name='name']" position="after">
               <field name="q_x_pack" readonly="1" />
               <field name="colour" readonly="1" />
            </xpath>
        </field>
    </record>

    <record id='product_product_tree_view_extra_fields' model='ir.ui.view'>
        <field name='name'>Extra product tree field</field>
        <field name='model'>product.product</field>
        <field name="inherit_id" ref="product.product_product_tree_view"/>
        <field name='arch' type='xml'>
           <field name='state' position="before">
                <field name='first_supplier_id' />
           </field>     
        </field>
    </record>
    <record id='product_product_form_view_extra_fields' model='ir.ui.view'>
        <field name='name'>Extra product tree field</field>
        <field name='model'>product.product</field>
        <field name="inherit_id" ref="product.product_normal_form_view"/>
        <field name='arch' type='xml'>
           <field name='seller_ids' position="after">
                <field name='first_supplier_id' />
                <newline/>
           </field>     
        </field>
    </record>
    
</data>
</openerp>


{'fraction_non_alphanumeric': 0.15766738660907129, 'fraction_numerical': 0.002540973192732817, 'mean_word_length': 2.0979929161747344, 'pattern_counts': {'":': 0, '<': 206, '<?xml version=': 2, '>': 206, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 13}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3090541', 'n_tokens_mistral': 2310, 'n_tokens_neox': 2252, 'n_words': 380}