<?xml version="1.0"?>
<form string="Reverse Journal Entry">
                    <field name="residual" invisible="1"/>
                    <field name="company_id" invisible="1"/>
                    <field name="move_ids" invisible="1"/>
                    <field name="move_type" invisible="1"/>
                    <field name="available_journal_ids" invisible="1"/>
                    <group>
                        <field name="reason" invisible="move_type == 'entry'"/>
                        <field name="journal_id" domain="[('id', 'in', available_journal_ids)]"/>
                        <field name="date" required="1"/>
                    </group>
                    <footer>
                        <button string="Reverse" name="refund_moves" type="object" class="btn-primary" data-hotkey="q"/>
                        <button string="Reverse and Create Invoice" name="modify_moves" type="object" class="btn-secondary" invisible="move_type  == 'entry'"/>
                        <button string="Discard" class="btn-secondary" special="cancel" data-hotkey="x"/>
                    </footer>
               </form>
            