<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="sale_loyalty_coupon_wizard_view_form" model="ir.ui.view">
        <field name="name">sale.loyalty.coupon.wizard.view.form</field>
        <field name="model">sale.loyalty.coupon.wizard</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <group>
                        <group>
                            <field name="coupon_code"/>
                        </group>
                    </group>
                </sheet>
                <footer>
                    <button type="object" name="action_apply" string="Apply" class="btn btn-primary" data-hotkey="q"/>
                    <button special="cancel" string="Discard" class="btn btn-secondary" data-hotkey="z"/>
                </footer>
            </form>
        </field>
    </record>

    <record id="sale_loyalty_coupon_wizard_action" model="ir.actions.act_window">
        <field name="name">Enter Promotion or Coupon Code</field>
        <field name="res_model">sale.loyalty.coupon.wizard</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>
</odoo>
