<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017 ForgeFlow S.L.
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="view_stock_move_line_tree" model="ir.ui.view">
        <field name="name">Stock Move Line Tree - cycle count extension</field>
        <field name="model">stock.move.line</field>
        <field
            name="inherit_id"
            ref="stock_inventory.view_stock_move_line_inventory_tree"
        />
        <field name="arch" type="xml">
            <field name="product_id" position="after">
                <field name="is_inventory" invisible="1" />
                <field
                    name="theoretical_qty"
                    attrs="{'invisible': [('is_inventory', '=', False)]}"
                />
                <field
                    name="counted_qty"
                    attrs="{'invisible': [('is_inventory', '=', False)]}"
                />
                <field
                    name="line_accuracy"
                    attrs="{'invisible': [('is_inventory', '=', False)]}"
                    widget="percentage"
                />
            </field>
        </field>
    </record>
    <record id="view_stock_move_line_form" model="ir.ui.view">
        <field name="name">Stock Move Line Form - cycle count extension</field>
        <field name="model">stock.move.line</field>
        <field name="inherit_id" ref="stock.view_move_line_form" />
        <field name="arch" type="xml">
            <field name="lot_id" position="after">
                <field name="is_inventory" invisible="1" />
                <field
                    name="theoretical_qty"
                    attrs="{'invisible': [('is_inventory', '=', False)]}"
                />
                <field
                    name="counted_qty"
                    attrs="{'invisible': [('is_inventory', '=', False)]}"
                />
                <field
                    name="line_accuracy"
                    attrs="{'invisible': [('is_inventory', '=', False)]}"
                    class="oe_inline"
                    widget="percentage"
                />
            </field>
        </field>
    </record>
</odoo>
