<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <record id="woo_category_filter_form_view" model="ir.ui.view">
        <field name="name">woo.category.filter.form</field>
        <field name="model">woo.category.filter</field>
        <field name="arch" type="xml">
            <form string="Manage Hidden Categories">
                <sheet>
                    <div class="alert alert-info" role="alert">
                        Select the product categories you want to hide from the unmatched products list.
                        These will persist across sessions. You can toggle them on/off from the product mapping screen.
                    </div>
                    <group>
                        <field name="instance_id" invisible="1"/>
                        <field name="category_ids" widget="many2many_tags"
                               options="{'no_create': True}"
                               placeholder="Search and select categories to hide..."/>
                    </group>
                </sheet>
                <footer>
                    <button name="action_save" type="object" string="Save" class="btn-primary"/>
                    <button name="action_clear_all" type="object" string="Clear All" class="btn-secondary"/>
                    <button string="Cancel" class="btn-secondary" special="cancel"/>
                </footer>
            </form>
        </field>
    </record>

</odoo>
