<?xml version="1.0"?>
<form string="Reset View Architecture">
                    <group>
                        <group>
                            <field name="has_diff" invisible="1"/>  <!-- The field compute method update the value of 'view_id' -->
                            <field name="view_id" invisible="1"/>  <!-- Save the value updated from 'has_diff' compute -->
                            <field name="view_name"/>
                            <field name="compare_view_id" invisible="reset_mode != 'other_view'" options="{'no_create': True, 'no_open': True}"/>
                        </group>
                        <group>
                            <field name="reset_mode" widget="radio"/>
                        </group>
                    </group>
                    <field name="arch_diff" invisible="not arch_diff"/>
                    <div class="alert alert-warning my-2" role="alert" invisible="arch_diff">
                        <span invisible="reset_mode != 'soft'">This view has no previous version.</span>
                        <span invisible="reset_mode != 'hard'">This view is not coming from a file.</span>
                        <span invisible="reset_mode != 'other_view'">You need two views to compare.</span>
                    </div>
                    <footer>
                        <button string="Reset View" name="reset_view_button" type="object" class="btn-primary" invisible="not has_diff" data-hotkey="q"/>
                        <button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="x"/>
                    </footer>
                </form>
            