<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 ACSONE SA/NV
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>

    <record model="ir.ui.view" id="stock_location_form_view">
        <field name="model">stock.location</field>
        <field name="inherit_id" ref="stock.view_location_form" />
        <field name="arch" type="xml">
            <xpath expr="//group[last()]">
                <!-- TODO: Create a base module for restriction group instead -->
                <group
                    name="release_channel_restrictions"
                    string="Release Channel Restrictions"
                    groups="stock.group_stock_multi_locations"
                >
                    <field name="release_channel_restriction" />
                    <field
                        name="specific_release_channel_restriction"
                        class="oe_edit_only"
                    />
                    <field
                        name="release_channel_restriction_in_move"
                        attrs="{'invisible': [('release_channel_restriction', '!=', 'same')]}"
                    />
                </group>
            </xpath>


        </field>
    </record>

</odoo>
