<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2018 Tecnativa - Sergio Teruel
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="view_stock_move_line_operation_tree" model="ir.ui.view">
        <field name="name">Stock Move Secondary Unit</field>
        <field name="model">stock.move.line</field>
        <field name="inherit_id" ref="stock.view_stock_move_line_operation_tree" />
        <field name="groups_id" eval="[(4, ref('uom.group_uom'))]" />
        <field name="arch" type="xml">
            <field name="product_uom_qty" position="before">
                <field name="secondary_uom_qty" />
                <field
                    name="secondary_uom_id"
                    domain="[('product_tmpl_id.product_variant_ids', 'in', [product_id])]"
                    options="{'no_create': True}"
                />
            </field>
        </field>
    </record>
    <record id="view_stock_move_line_detailed_operation_tree" model="ir.ui.view">
        <field name="name">stock.move.line.operations.tree</field>
        <field name="model">stock.move.line</field>
        <field
            name="inherit_id"
            ref="stock.view_stock_move_line_detailed_operation_tree"
        />
        <field name="groups_id" eval="[(4, ref('uom.group_uom'))]" />
        <field name="arch" type="xml">
            <field name="product_uom_qty" position="before">
                <field name="secondary_uom_qty" />
                <field
                    name="secondary_uom_id"
                    domain="[('product_tmpl_id.product_variant_ids', 'in', [product_id])]"
                    options="{'no_create': True}"
                />
            </field>
        </field>
    </record>
</odoo>
