<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="stock_move_search_add_new_state" model="ir.ui.view">
            <field name="name">stock.move.search.add.new.state</field>
            <field name="model">stock.move</field>
            <field name="inherit_id" ref="stock.view_move_search"/>
            <field name="arch" type="xml">
                <filter name="ready" position="before">
                    <filter name="New" domain="[('state', '=', 'draft')]"/>
                </filter>
                <field name="origin" position="after">
                    <field name="container_id"/>
                </field>
                <filter string="Picking" position="after">
                    <filter string="Container" name="groupby_container_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'container_id'}"/>
                </filter>
            </field>
        </record>


        <record id="stock_move_tree_add_date_expected" model="ir.ui.view">
            <field name="name">stock.move.search.add.new.state</field>
            <field name="model">stock.move</field>
            <field name="inherit_id" ref="stock.view_move_tree_receipt_picking"/>
            <field name="arch" type="xml">
                <field name="date" position="after">
                    <field name="date_expected" widget="date"/>
                    <field name="container_id"/>
                </field>
            </field>
        </record>


        <record id="stock_picking_supplier_add_shipping_id" model="ir.ui.view">
            <field name="name">stock.picking.add</field>
            <field name="model">stock.picking</field>
            <field name="inherit_id" ref="stock.view_picking_form"/>
            <field name="arch" type="xml">
                <field name="partner_id" position="after">
                    <field name="shipping_identifier" attrs="{'invisible': [('picking_type_code', '!=', 'incoming')]}"/>
                </field>
            </field>
        </record>

        <record id="vpicktree_add_shipping_id" model="ir.ui.view">
            <field name="name">stock.picking.tree.add_shipping_id</field>
            <field name="model">stock.picking</field>
            <field name="inherit_id" ref="stock.vpicktree"/>
            <field name="arch" type="xml">
                <field name="origin" position="after">
                    <field name="shipping_identifier"/>
                </field>
                <field name="date" position="after">
                    <field name="min_date"/>
                </field>
            </field>
        </record>

        <record id="view_move_tree_receipt_picking_no_create" model="ir.ui.view">
            <field name="name">stock.move.tree2.no_create</field>
            <field name="model">stock.move</field>
            <field name="inherit_id" ref="stock.view_move_tree_receipt_picking"/>
            <field name="arch" type="xml">
                <tree position="attributes">
                    <attribute name="create">0</attribute>
                </tree>
                <field name="origin" position="before">
                    <field name="partner_id"/>
                </field>
            </field>
        </record>

        <record id="view_move_picking_form_add_partner" 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_picking_form"/>
            <field name="arch" type="xml">
                <field name="reserved_quant_ids" position="after">
                    <newline/>
                    <group>
                        <field name="partner_id" string="Partner"/>
                    </group>
                </field>
            </field>
        </record>

        <record id="view_move_form_add_container" model="ir.ui.view">
            <field name="name">stock.move.form.add_container</field>
            <field name="model">stock.move</field>
            <field name="inherit_id" ref="stock.view_move_form"/>
            <field name="arch" type="xml">
                <field name="date_expected" position="after">
                    <field name="container_id" attrs="{'invisible': ['|',('picking_id', '!=', False),('state', 'in', ['cancel','done'])]}"/>
                </field>
            </field>
        </record>

        <record id="view_stock_container_form" model="ir.ui.view">
            <field name="name">stock.container.form</field>
            <field name="model">stock.container</field>
            <field name="arch" type="xml">
                <form string="Container">
                    <group colspan="4">
                        <group col="2" colspan="2">
                            <field name="name"/>
                        </group>
                        <group col="2" colspan="2">
                            <field name="date_expected"/>
                        </group>
                        <separator string="Related Moves" colspan="4"/>
                        <field name="move_ids" context="{'tree_view_ref':'purchase_picking.stock_move_custom_tree'}" nolabel="1" colspan="4"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="stock_move_custom_tree" model="ir.ui.view">
            <field name="name">Stock Moves Cusotom Tree</field>
            <field name="model">stock.move</field>
            <field name="arch" type="xml">
                <tree colors="grey:state == 'cancel'" string="Moves" create="false">
                    <field name="product_id"/>
                    <field name="product_uom_qty"/>
                    <field name="price_unit"/>
                    <field name="picking_id"/>
                    <field name="group_id"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>

        <record id="view_stock_container_tree" model="ir.ui.view">
            <field name="name">stock.container.tree</field>
            <field name="model">stock.container</field>
            <field name="arch" type="xml">
                <tree string="Containers">
                    <field name="name"/>
                    <field name="date_expected"/><commit_msg>[IMP] 'purchase_picking': Añadido sumatorio a la vista de Movimientos relacionados<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="stock_move_search_add_new_state" model="ir.ui.view">
            <field name="name">stock.move.search.add.new.state</field>
            <field name="model">stock.move</field>
            <field name="inherit_id" ref="stock.view_move_search"/>
            <field name="arch" type="xml">
                <filter name="ready" position="before">
                    <filter name="New" domain="[('state', '=', 'draft')]"/>
                </filter>
                <field name="origin" position="after">
                    <field name="container_id"/>
                </field>
                <filter string="Picking" position="after">
                    <filter string="Container" name="groupby_container_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'container_id'}"/>
                </filter>
            </field>
        </record>


        <record id="stock_move_tree_add_date_expected" model="ir.ui.view">
            <field name="name">stock.move.search.add.new.state</field>
            <field name="model">stock.move</field>
            <field name="inherit_id" ref="stock.view_move_tree_receipt_picking"/>
            <field name="arch" type="xml">
                <field name="date" position="after">
                    <field name="date_expected" widget="date"/>
                    <field name="container_id"/>
                </field>
            </field>
        </record>


        <record id="stock_picking_supplier_add_shipping_id" model="ir.ui.view">
            <field name="name">stock.picking.add</field>
            <field name="model">stock.picking</field>
            <field name="inherit_id" ref="stock.view_picking_form"/>
            <field name="arch" type="xml">
                <field name="partner_id" position="after">
                    <field name="shipping_identifier" attrs="{'invisible': [('picking_type_code', '!=', 'incoming')]}"/>
                </field>
            </field>
        </record>

        <record id="vpicktree_add_shipping_id" model="ir.ui.view">
            <field name="name">stock.picking.tree.add_shipping_id</field>
            <field name="model">stock.picking</field>
            <field name="inherit_id" ref="stock.vpicktree"/>
            <field name="arch" type="xml">
                <field name="origin" position="after">
                    <field name="shipping_identifier"/>
                </field>
                <field name="date" position="after">
                    <field name="min_date"/>
                </field>
            </field>
        </record>

        <record id="view_move_tree_receipt_picking_no_create" model="ir.ui.view">
            <field name="name">stock.move.tree2.no_create</field>
            <field name="model">stock.move</field>
            <field name="inherit_id" ref="stock.view_move_tree_receipt_picking"/>
            <field name="arch" type="xml">
                <tree position="attributes">
                    <attribute name="create">0</attribute>
                </tree>
                <field name="origin" position="before">
                    <field name="partner_id"/>
                </field>
            </field>
        </record>

        <record id="view_move_picking_form_add_partner" 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_picking_form"/>
            <field name="arch" type="xml">
                <field name="reserved_quant_ids" position="after">
                    <newline/>
                    <group>
                        <field name="partner_id" string="Partner"/>
                    </group>
                </field>
            </field>
        </record>

        <record id="view_move_form_add_container" model="ir.ui.view">
            <field name="name">stock.move.form.add_container</field>
            <field name="model">stock.move</field>
            <field name="inherit_id" ref="stock.view_move_form"/>
            <field name="arch" type="xml">
                <field name="date_expected" position="after">
                    <field name="container_id" attrs="{'invisible': ['|',('picking_id', '!=', False),('state', 'in', ['cancel','done'])]}"/>
                </field>
            </field>
        </record>

        <record id="view_stock_container_form" model="ir.ui.view">
            <field name="name">stock.container.form</field>
            <field name="model">stock.container</field>
            <field name="arch" type="xml">
                <form string="Container">
                    <group colspan="4">
                        <group col="2" colspan="2">
                            <field name="name"/>
                        </group>
                        <group col="2" colspan="2">
                            <field name="date_expected"/>
                        </group>
                        <separator string="Related Moves" colspan="4"/>
                        <field name="move_ids" context="{'tree_view_ref':'purchase_picking.stock_move_custom_tree'}" nolabel="1" colspan="4"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="stock_move_custom_tree" model="ir.ui.view">
            <field name="name">Stock Moves Cusotom Tree</field>
            <field name="model">stock.move</field>
            <field name="arch" type="xml">
                <tree colors="grey:state == 'cancel'" string="Moves" create="false">
                    <field name="product_id"/>
                    <field name="product_uom_qty"/>
                    <field name="price_unit"/>
                    <field name="picking_id"/>
                    <field name="group_id"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>

        <record id="stock_move_custom_tree_sum" model="ir.ui.view">
            <field name="name">Stock Moves Cusotom Tree Sum</field>
            <field name="model">stock.move</field>
            <field name="inherit_id" ref="purchase_picking.stock_move_custom_tree"/>
            <field name="arch" type="xml">
                <field name="product_uom_qty" position="attributes">
                    <attribute name="sum">Qty.</attribute>
                </field>
                <field name="price_unit" position="attributes">
                    <attribute name="sum">Total.</attribute>
                </field>
            </field>
        </record>

        <record id="view_stock_container_tree" model="ir.ui.view">
            <field name="name">stock.container.tree</field>
            <field name="model">stock.container</field>
            <field name="arch" type="xml">
                <tree string="Containers">
                    <field name="name"/>
                    <field name="date_expected"/>
{'fraction_non_alphanumeric': 0.1533874934784229, 'fraction_numerical': 0.001937840053663263, 'mean_word_length': 1.7740334918337812, 'pattern_counts': {'":': 0, '<': 318, '<?xml version=': 2, '>': 318, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 23}, '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': '5822733', 'n_tokens_mistral': 3758, 'n_tokens_neox': 3577, 'n_words': 607}