<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 ForgeFlow S.L.
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="stock_analytic_inventory_line_tree" model="ir.ui.view">
        <field name="name">stock.inventory.line.tree</field>
        <field name="model">stock.inventory.line</field>
        <field name="inherit_id" ref="stock.stock_inventory_line_tree" />
        <field name="arch" type="xml">
            <field name="location_id" position="after">
                <field
                    name="analytic_account_id"
                    groups="analytic.group_analytic_accounting"
                />
                <field
                    name="analytic_tag_ids"
                    groups="analytic.group_analytic_accounting"
                    widget="many2many_tags"
                />
            </field>
        </field>
    </record>
    <record id="stock_inventory_line_tree_no_product_create" model="ir.ui.view">
        <field name="name">stock.inventory.line.tree</field>
        <field name="model">stock.inventory.line</field>
        <field
            name="inherit_id"
            ref="stock.stock_inventory_line_tree_no_product_create"
        />
        <field name="arch" type="xml">
            <field name="location_id" position="after">
                <field
                    name="analytic_account_id"
                    groups="analytic.group_analytic_accounting"
                />
                <field
                    name="analytic_tag_ids"
                    groups="analytic.group_analytic_accounting"
                    widget="many2many_tags"
                />
            </field>
        </field>
    </record>
</odoo>

<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 ForgeFlow S.L.
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="stock_analytic_inventory_line_tree" model="ir.ui.view">
        <field name="name">stock.inventory.line.tree</field>
        <field name="model">stock.inventory.line</field>
        <field name="inherit_id" ref="stock.stock_inventory_line_tree" />
        <field name="arch" type="xml">
            <field name="location_id" position="after">
                <field
                    name="analytic_account_id"
                    groups="analytic.group_analytic_accounting"
                />
                <field
                    name="analytic_tag_ids"
                    groups="analytic.group_analytic_accounting"
                    widget="many2many_tags"
                />
            </field>
        </field>
    </record>
</odoo>

Remove duplicate analytic account and analytic tag fields
[14.0][FIX] stock_inventory_analytic: Remove duplicate analytic account and analytic tag fields
