<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="stock_move_purchase" model="ir.ui.view">
            <field name="name">stock.move.form</field>
            <field name="model">stock.move</field>
            <field name="inherit_id" ref="stock.view_move_form"/>
            <field name="arch" type="xml">
                 <xpath expr="//group[@name='destination_grp']" position="inside">
                    <field name="purchase_line_id"/>
                </xpath>
            </field>
        </record>

        <record id="stock_picking_in_inherit_purchase" model="ir.ui.view">
            <field name="name">Incoming Picking Inherited</field>
            <field name="model">stock.picking.in</field>
            <field name="inherit_id" ref="stock.view_picking_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='date']" position="before">
                    <field name="purchase_id"/>
                </xpath>
                <xpath expr="//field[@name='company_id']" position="after">
                    <field name="warehouse_id" groups="stock.group_locations"/>
                </xpath>
            </field>
        </record>

        <record id="view_picking_in_search_picking_inherit" model="ir.ui.view">
            <field name="name">stock.picking.in.search.inherit</field>
            <field name="model">stock.picking.in</field>
            <field name="inherit_id" ref="stock.view_picking_in_search"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='product_id']" position="before">
                    <field name="purchase_id"/>
                </xpath>
            </field>
        </record>

        <record id="view_picking_in_form_picking_inherit" model="ir.ui.view">
            <field name="name">stock.picking.in.form.inherit</field>
            <field name="model">stock.picking.in</field>
            <field name="inherit_id" ref="stock.view_picking_in_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='move_lines']" position="after">
                    <field name="purchase_invoice_method" invisible="1"/>
                </xpath>
                <xpath expr="//button[@name='action_process']" position="after">
                    <button name="create_draft_invoice" string="Receive &amp; Control Invoice"  attrs="{'invisible':[('purchase_invoice_method', '!=', 'picking')]}" type="object" class="oe_highlight"/>
                </xpath>
            </field>
        </record>

        <!-- is it need ? we have another method "Receive Products"--><commit_msg>[IMP] attr<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="stock_move_purchase" model="ir.ui.view">
            <field name="name">stock.move.form</field>
            <field name="model">stock.move</field>
            <field name="inherit_id" ref="stock.view_move_form"/>
            <field name="arch" type="xml">
                 <xpath expr="//group[@name='destination_grp']" position="inside">
                    <field name="purchase_line_id"/>
                </xpath>
            </field>
        </record>

        <record id="stock_picking_in_inherit_purchase" model="ir.ui.view">
            <field name="name">Incoming Picking Inherited</field>
            <field name="model">stock.picking.in</field>
            <field name="inherit_id" ref="stock.view_picking_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='date']" position="before">
                    <field name="purchase_id"/>
                </xpath>
                <xpath expr="//field[@name='company_id']" position="after">
                    <field name="warehouse_id" groups="stock.group_locations"/>
                </xpath>
            </field>
        </record>

        <record id="view_picking_in_search_picking_inherit" model="ir.ui.view">
            <field name="name">stock.picking.in.search.inherit</field>
            <field name="model">stock.picking.in</field>
            <field name="inherit_id" ref="stock.view_picking_in_search"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='product_id']" position="before">
                    <field name="purchase_id"/>
                </xpath>
            </field>
        </record>

        <record id="view_picking_in_form_picking_inherit" model="ir.ui.view">
            <field name="name">stock.picking.in.form.inherit</field>
            <field name="model">stock.picking.in</field>
            <field name="inherit_id" ref="stock.view_picking_in_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='move_lines']" position="after">
                    <field name="purchase_invoice_method" invisible="1"/>
                </xpath>
                <xpath expr="//button[@name='action_process']" position="after">
                    <button name="create_draft_invoice" string="Receive &amp; Control Invoice"  attrs="{'invisible':[('purchase_invoice_method', '=', 'manual')]}" type="object" class="oe_highlight"/>
                </xpath>
            </field>
        </record>

        <!-- is it need ? we have another method "Receive Products"-->
{'fraction_non_alphanumeric': 0.1638821100056317, 'fraction_numerical': 0.0015017833677492022, 'mean_word_length': 2.1752085816448155, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 2, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '6486642', 'n_tokens_mistral': 1574, 'n_tokens_neox': 1518, 'n_words': 244}