<?xml version="1.0"?>
<form string="Website rewrite Settings">
                    <header>
                        <button name="refresh_routes" string="Refresh route's list" type="object" class="btn-light" invisible="redirect_type != '308'"/>
                    </header>
                    <sheet>
                        <group>
                            <group>
                                <field name="name"/>
                                <field name="redirect_type"/>
                                <field name="url_from" invisible="redirect_type == '308'"/>
                                <field name="route_id" string="URL from" options="{'no_create': True, 'no_open': True}" invisible="redirect_type != '308'"/>
                                <field name="url_to" invisible="redirect_type == '404'"/>
                            </group>
                            <group>
                                <field name="website_id" options="{'no_create': True}" groups="website.group_multi_website"/>
                                <field name="active" widget="boolean_toggle"/>
                                <field name="sequence" groups="base.group_no_one"/>
                            </group>
                        </group>
                    </sheet>
                </form>
            